# HG changeset patch # User komh # Date 1265294577 0 # Node ID 2675229bd06f91457b2552a5c2e742e527cbfc00 # Parent 9bb2ebbb52bed2a79663a18cb6c507e16de97747 Audio buffer is too large so that it takes too long time to respond to audio control such as software volume control. diff -r 9bb2ebbb52be -r 2675229bd06f libao2/ao_kai.c --- a/libao2/ao_kai.c Wed Feb 03 23:46:00 2010 +0000 +++ b/libao2/ao_kai.c Thu Feb 04 14:42:57 2010 +0000 @@ -242,7 +242,7 @@ ao_data.outburst = nBytesPerSample * OUTBURST_SAMPLES; ao_data.buffersize = m_kaiSpec.ulBufferSize; - m_nBufSize = (m_kaiSpec.ulBufferSize * m_kaiSpec.ulNumBuffers) << 3; + m_nBufSize = (m_kaiSpec.ulBufferSize * m_kaiSpec.ulNumBuffers) << 2; // multiple of CHUNK_SIZE m_nBufSize = (m_nBufSize / CHUNK_SIZE) * CHUNK_SIZE;