From 1b9d1556734aad2b0b51ce7f332a59e988fe2cfd Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Thu, 19 Feb 2009 06:42:01 +0000 Subject: [PATCH] [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. --- BasiliskII/src/SDL/audio_sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BasiliskII/src/SDL/audio_sdl.cpp b/BasiliskII/src/SDL/audio_sdl.cpp index 2a6f4b74..6901e0a4 100644 --- a/BasiliskII/src/SDL/audio_sdl.cpp +++ b/BasiliskII/src/SDL/audio_sdl.cpp @@ -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;