summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sound/sdl_sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/sound/sdl_sound.c')
-rw-r--r--src/osd/modules/sound/sdl_sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/sound/sdl_sound.c b/src/osd/modules/sound/sdl_sound.c
index bbebb6e741a..22f63a67017 100644
--- a/src/osd/modules/sound/sdl_sound.c
+++ b/src/osd/modules/sound/sdl_sound.c
@@ -489,7 +489,7 @@ static int sdl_init(running_machine &machine)
}
// compute the buffer sizes
- stream_buffer_size = machine.sample_rate() * 2 * sizeof(INT16) * audio_latency / MAX_AUDIO_LATENCY;
+ stream_buffer_size = (machine.sample_rate() * 2 * sizeof(INT16) * (2 + audio_latency)) / 30;
stream_buffer_size = (stream_buffer_size / 1024) * 1024;
if (stream_buffer_size < 1024)
stream_buffer_size = 1024;