aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Frühberger <Peter.Fruehberger@gmail.com>2014-01-07 04:18:33 -0800
committerPeter Frühberger <Peter.Fruehberger@gmail.com>2014-01-07 04:18:33 -0800
commit0eba90506557ef08aecbed60852dfbc34c130d07 (patch)
treefcce043d3b11194986152273b7a296aa105fa6ec
parentc4251c386593349843bb2d8b8a0a413bcf5100c6 (diff)
parentdf15dea05f352fb541404127f941c5d0c62db771 (diff)
Merge pull request #3975 from FernetMenta/aefixes
ActiveAE: update buffered time of streams on resume after suspend
-rw-r--r--xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
index af7407433d..7aac8b9b90 100644
--- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
+++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
@@ -1049,6 +1049,9 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
(*it)->m_limiter.SetSamplerate(outputFormat.m_sampleRate);
}
+ // update buffered time of streams
+ m_stats.AddSamples(0, m_streams);
+
// buffers for viz
if (!AE_IS_RAW(inputFormat.m_dataFormat))
{