mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
SDL: experimental rework of buffer size calculation. (nw)
This commit is contained in:
parent
ce2ff23fe0
commit
a9ce0f0fbd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user