]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/sound.cpp
Reverted FILLCOLORHINT->FILLCOLOR change. Now when a near black themeColor is returne...
[wxWidgets.git] / src / unix / sound.cpp
index 30ce40656f2775736896b0121937a367dc7efbe9..63dd28625877cacd00d5577c943eb2cdce20f255 100644 (file)
@@ -340,6 +340,8 @@ bool wxSoundSyncOnlyAdaptor::Play(wxSoundData *data, unsigned flags,
 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;
     
@@ -350,11 +352,16 @@ void wxSoundSyncOnlyAdaptor::Stop()
     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
 }