X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=sound.c;h=370664b828605aea936c06898da69e9fd6ef0119;hp=7e130fab3b4864b7d143fad596ba94eda684cf86;hb=cc981841a776591c07d199609f15096248d3f79c;hpb=d447f17f693875013eed05ff3a2fce79cbe0b5f2 diff --git a/sound.c b/sound.c index 7e130fa..370664b 100644 --- a/sound.c +++ b/sound.c @@ -869,8 +869,6 @@ void SetNESSoundMap(void) SetReadHandler(0x4015,0x4015,Read_PSG); } -static int32 WaveNSF[2048]; - int32 highp; // 0 through 65536, 0 = no high pass, 65536 = max high pass int32 lowp; // 0 through 65536, 65536 = max low pass(total attenuation) @@ -923,17 +921,6 @@ int FlushEmulateSound(void) GameExpSound.Fill(end&0xF); FilterSound(Wave,WaveFinalMono,end>>4); -// printf("count %d, num ints %d\n", end, (end >> 4)); - if(FCEUGameInfo.type==GIT_NSF) - { - int x;//,s=0,si=end/1024; - for(x=0;x<1024;x++) - { - //WaveNSF[x]=WaveFinal[s>>4]; - WaveNSF[x]=WaveFinalMono[x]; - //s+=si; - } - } if(end&0xF) Wave[0]=Wave[(end>>4)]; @@ -948,9 +935,9 @@ int FlushEmulateSound(void) return(end); } -int GetSoundBuffer(int32 **W) +int GetSoundBuffer(int16 **W) { - *W=WaveNSF; + *W=WaveFinalMono; return inbuf; }