Linux sound buffer update, fixing glitches on some sound cards. [Diablo-D3]

This commit is contained in:
stainless
2001-09-06 04:05:13 +00:00
parent 24ffe07deb
commit 5b25fe10be

View File

@@ -505,8 +505,10 @@ int InitSound(void)
} }
//wanted.samples = (wanted.freq / 60) * 2 * wanted.channels; //wanted.samples = (wanted.freq / 60) * 2 * wanted.channels;
wanted.samples = samptab[SoundQuality] * 2 * wanted.channels; //wanted.samples = samptab[SoundQuality] * 2 * wanted.channels;
wanted.format = AUDIO_S16LSB; wanted.samples = samptab[SoundQuality] * 8 * wanted.channels;
//wanted.format = AUDIO_S16LSB;
wanted.format = AUDIO_S16;
wanted.userdata = NULL; wanted.userdata = NULL;
wanted.callback = UpdateSound; wanted.callback = UpdateSound;