Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2511 from fritsch/ae-free-sounds

AE: Stop playing sounds when going to Suspend for all platforms (fixes #14211)
  • Loading branch information...
commit 2a0c7317af5568aa5fed3ffb23481c439c516945 2 parents e9fa43c + 078b0ec
@davilla davilla authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
View
5 xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
@@ -975,8 +975,10 @@ bool CSoftAE::Suspend()
{
CLog::Log(LOGDEBUG, "CSoftAE::Suspend - Suspending AE processing");
m_isSuspended = true;
+
+ StopAllSounds();
+
CSingleLock streamLock(m_streamLock);
-
for (StreamList::iterator itt = m_playingStreams.begin(); itt != m_playingStreams.end(); ++itt)
{
CSoftAEStream *stream = *itt;
@@ -985,7 +987,6 @@ bool CSoftAE::Suspend()
streamLock.Leave();
#if defined(TARGET_LINUX)
/*workaround sinks not playing sound after resume */
- StopAllSounds();
bool ret = true;
if(m_sink)
{
Please sign in to comment.
Something went wrong with that request. Please try again.