Previous 199869 Revisions Next

r36937 Saturday 4th April, 2015 at 16:13:46 UTC by Vasantha Crabb
I can be really dumb sometimes
[src/osd/modules/sound]coreaudio_sound.c

trunk/src/osd/modules/sound/coreaudio_sound.c
r245448r245449
5959   };
6060
6161   UINT32 clamped_latency() const { return MAX(MIN(m_audio_latency, LATENCY_MAX), LATENCY_MIN); }
62   UINT32 buffer_avail() const { return ((m_writepos <= m_playpos) ? m_buffer_size : 0) + m_playpos - m_writepos; }
63   UINT32 buffer_used() const { return ((m_playpos < m_writepos) ? m_buffer_size : 0) + m_writepos - m_playpos; }
62   UINT32 buffer_avail() const { return ((m_writepos >= m_playpos) ? m_buffer_size : 0) + m_playpos - m_writepos; }
63   UINT32 buffer_used() const { return ((m_playpos > m_writepos) ? m_buffer_size : 0) + m_writepos - m_playpos; }
6464
6565   void copy_scaled(void *dst, void const *src, UINT32 bytes) const
6666   {


Previous 199869 Revisions Next


© 1997-2024 The MAME Team