bool CSoftAE::IsSuspended()
{
-#if defined(TARGET_WINDOWS)
return m_isSuspended;
-#else
- return false;
-#endif
}
float CSoftAE::GetVolume()
bool CSoftAE::Suspend()
{
CLog::Log(LOGDEBUG, "CSoftAE::Suspend - Suspending AE processing");
-#if defined(TARGET_WINDOWS)
m_isSuspended = true;
CSingleLock streamLock(m_streamLock);
CSoftAEStream *stream = *itt;
stream->Flush();
}
-#endif
return true;
}
bool CSoftAE::Resume()
{
CLog::Log(LOGDEBUG, "CSoftAE::Resume - Resuming AE processing");
-#if defined(TARGET_WINDOWS)
m_isSuspended = false;
m_reOpen = true;
-#endif
return true;
}
restart = true;
}
-#if defined(TARGET_WINDOWS)
/* Handle idle or forced suspend */
ProcessSuspend();
-#endif
/* if we are told to restart */
if (m_reOpen || restart || !m_sink)
bool sinkIsSuspended = false;
unsigned int curSystemClock = 0;
+#if defined(TARGET_WINDOWS)
if (!m_softSuspend && m_playingStreams.empty() && m_playing_sounds.empty() &&
!g_advancedSettings.m_streamSilence)
{
if (m_softSuspend)
curSystemClock = XbmcThreads::SystemClockMillis();
+#endif
/* idle while in Suspend() state until Resume() called */
/* idle if nothing to play and user hasn't enabled */