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

trunk/src/osd/modules/sound/sdl_sound.c
r241364r241365
489489   }
490490
491491   // compute the buffer sizes
492   stream_buffer_size = machine.sample_rate() * 2 * sizeof(INT16) * audio_latency / MAX_AUDIO_LATENCY;
492   stream_buffer_size = (machine.sample_rate() * 2 * sizeof(INT16) * (2 + audio_latency)) / 30;
493493   stream_buffer_size = (stream_buffer_size / 1024) * 1024;
494494   if (stream_buffer_size < 1024)
495495      stream_buffer_size = 1024;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team