aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwsoltys <wiso@no.way>2014-02-07 16:37:53 +0100
committerWiSo <wiso@xbmc.org>2014-02-08 22:06:16 +0100
commit93713434714895a8f522c92a612167d5a815b0ef (patch)
tree328a3ecb4a3cbe15824e0caf58f1545bc047946e
parent84ec9e1a58c43c6e369102ccd12fecfb891a1bb0 (diff)
[WIN32][DS] fixed: viz waveform would show a zero line at the end because of not enough frames. Increasing the sound buffer to deliver > 512 frames.
-rw-r--r--xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
index 9ebb61e902..a0c8af6d24 100644
--- a/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
@@ -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;