Skip to content
This repository
Browse code

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 authored March 29, 2013
5  xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
@@ -975,8 +975,10 @@ bool CSoftAE::Suspend()
975 975
 {
976 976
   CLog::Log(LOGDEBUG, "CSoftAE::Suspend - Suspending AE processing");
977 977
   m_isSuspended = true;
  978
+
  979
+  StopAllSounds();
  980
+
978 981
   CSingleLock streamLock(m_streamLock);
979  
-  
980 982
   for (StreamList::iterator itt = m_playingStreams.begin(); itt != m_playingStreams.end(); ++itt)
981 983
   {
982 984
     CSoftAEStream *stream = *itt;
@@ -985,7 +987,6 @@ bool CSoftAE::Suspend()
985 987
   streamLock.Leave();
986 988
   #if defined(TARGET_LINUX)
987 989
   /*workaround sinks not playing sound after resume */
988  
-    StopAllSounds();
989 990
     bool ret = true;
990 991
     if(m_sink)
991 992
     {

0 notes on commit 2a0c731

Please sign in to comment.
Something went wrong with that request. Please try again.