diff libao2/ao_kai.c @ 30460:2675229bd06f

Audio buffer is too large so that it takes too long time to respond to audio control such as software volume control.
author komh
date Thu, 04 Feb 2010 14:42:57 +0000
parents 2118e8876a2b
children d50e20b4e441
line wrap: on
line diff
--- 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;