Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 fritsch authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
5 xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
View
@@ -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.