[WIN32][DS] fixed: viz waveform would show a zero line at the end because of not...
authorwsoltys <wiso@no.way>
Fri, 7 Feb 2014 15:37:53 +0000 (16:37 +0100)
committerWiSo <wiso@xbmc.org>
Sat, 8 Feb 2014 21:06:16 +0000 (22:06 +0100)
xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp

index 9ebb61e..a0c8af6 100644 (file)
@@ -233,10 +233,10 @@ bool CAESinkDirectSound::Initialize(AEAudioFormat &format, std::string &device)
 
   m_AvgBytesPerSec = wfxex.Format.nAvgBytesPerSec;
 
-  unsigned int uiFrameCount = (int)(format.m_sampleRate * 0.01); //default to 10ms chunks
+  unsigned int uiFrameCount = (int)(format.m_sampleRate * 0.015); //default to 15ms chunks
   m_dwFrameSize = wfxex.Format.nBlockAlign;
   m_dwChunkSize = m_dwFrameSize * uiFrameCount;
-  m_dwBufferLen = m_dwChunkSize * 12; //120ms total buffer
+  m_dwBufferLen = m_dwChunkSize * 12; //180ms total buffer
 
   // fill in the secondary sound buffer descriptor
   DSBUFFERDESC dsbdesc;