void wxSoundSyncOnlyAdaptor::Stop()
{
wxLogTrace(_T("sound"), _T("asking audio to stop"));
+
+#if wxUSE_THREADS
// tell the player thread (if running) to stop playback ASAP:
m_status.m_stopRequested = true;
m_mutexRightToPlay.Lock();
m_mutexRightToPlay.Unlock();
wxLogTrace(_T("sound"), _T("audio was stopped"));
+#endif
}
bool wxSoundSyncOnlyAdaptor::IsPlaying() const
{
+#if wxUSE_THREADS
return m_status.m_playing;
+#else
+ return FALSE;
+#endif
}