Previous 199869 Revisions Next

r36941 Saturday 4th April, 2015 at 21:53:33 UTC by Vasantha Crabb
Bigger isn't always better (nw)
[src/osd/modules/sound]coreaudio_sound.c

trunk/src/osd/modules/sound/coreaudio_sound.c
r245452r245453
164164
165165   // Allocate buffer
166166   m_headroom = (clamped_latency() * sample_rate() / 40) * m_sample_bytes;
167   m_buffer_size = MAX((sample_rate() * m_sample_bytes * (clamped_latency() + 2) / 20480) * 1024, m_sample_bytes * 256);
167   m_buffer_size = MAX(sample_rate() * m_sample_bytes * (clamped_latency() + 2) / 40, m_sample_bytes * 256);
168168   m_buffer = global_alloc_array_clear(INT8, m_buffer_size);
169169   if (!m_buffer)
170170   {


Previous 199869 Revisions Next


© 1997-2024 The MAME Team