mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
N163: don't auto-scale volume
This commit is contained in:
parent
de7a4eb2e9
commit
a08f7507fd
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ const char* DivPlatformN163::getEffectName(unsigned char effect) {
|
|||
void DivPlatformN163::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t i=start; i<start+len; i++) {
|
||||
n163.tick();
|
||||
int out=(n163.out()<<6)*(chanMax+1); // scale to 16 bit
|
||||
int out=(n163.out()<<6)*2; // scale to 16 bit
|
||||
if (out>32767) out=32767;
|
||||
if (out<-32768) out=-32768;
|
||||
bufL[i]=bufR[i]=out;
|
||||
|
|
Loading…
Reference in a new issue