Previous | 199869 Revisions | Next |
r32853 Tuesday 21st October, 2014 at 04:11:30 UTC by R. Belmont |
---|
SDL: experimental rework of buffer size calculation. (nw) |
[src/osd/modules/sound] | sdl_sound.c |
r241364 | r241365 | |
---|---|---|
489 | 489 | } |
490 | 490 | |
491 | 491 | // compute the buffer sizes |
492 | stream_buffer_size = machine.sample_rate() * 2 * sizeof(INT16) * audio_latency / | |
492 | stream_buffer_size = (machine.sample_rate() * 2 * sizeof(INT16) * (2 + audio_latency)) / 30; | |
493 | 493 | stream_buffer_size = (stream_buffer_size / 1024) * 1024; |
494 | 494 | if (stream_buffer_size < 1024) |
495 | 495 | stream_buffer_size = 1024; |
https://github.com/mamedev/mame/commit/a9ce0f0fbd0487fe7f327aa2755f8308ee7c9ad8 |
Previous | 199869 Revisions | Next |