[patch by Mike Sliczniak]

This patch helps to keep the audio from breaking-up on slow machines when using
SDL audio. On those slow machines you do still get the break-up every so often
but the sound tends not to break-up nearly as often. It is much better on the
ears. Notably often the system beeps do not have a pause in them.
Slow machine is <= 1 GHz G4.
This commit is contained in:
asvitkine 2009-02-19 06:42:01 +00:00
parent 04bec66567
commit 1b9d155673

View File

@ -81,7 +81,7 @@ static bool open_sdl_audio(void)
audio_spec.freq = audio_sample_rates[audio_sample_rate_index] >> 16;
audio_spec.format = (audio_sample_sizes[audio_sample_size_index] == 8) ? AUDIO_U8 : AUDIO_S16MSB;
audio_spec.channels = audio_channel_counts[audio_channel_count_index];
audio_spec.samples = 4096;
audio_spec.samples = 16384;
audio_spec.callback = stream_func;
audio_spec.userdata = NULL;