snd 2nd try (always weird)

This commit is contained in:
Not6
2016-02-14 01:50:11 +01:00
parent ca3065cdec
commit a8980f76e1
4 changed files with 1216 additions and 5 deletions
+4 -4
View File
@@ -196,12 +196,12 @@ extern int UI_is_active;
void retro_sound_update()
{
int x,silent=POKEYSND_enable_new_pokey?24449:32768;
int x;//silent=POKEYSND_enable_new_pokey?24449:32768;
if (! UI_is_active) {
POKEYSND_Process(SNDBUF,snd_sampler_pal*2);
for(x=0;x<snd_sampler_pal*2;x+=2)
retro_audio_cb(SNDBUF[x]+silent,SNDBUF[x+1]+silent);
POKEYSND_Process(SNDBUF,snd_sampler_pal*4);
for(x=0;x<snd_sampler_pal;x++)
retro_audio_cb(SNDBUF[x]/*<<8*/,SNDBUF[snd_sampler_pal+x]/*<<8*/);
}
}