Skip to content
This repository
Browse code

AE: Stop playing sounds when going to Suspend for all platforms (fixe…

…s #14211)
  • Loading branch information...
commit 078b0ec0cdfe8143c39b44460c4cc787a3543b56 1 parent 465dd93
Peter Frühberger authored March 28, 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 078b0ec

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