]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/mmedia/sndwin.cpp
test for wxLog interaction with wxYield better
[wxWidgets.git] / contrib / src / mmedia / sndwin.cpp
index 185f1bfb5eef7c49645ac74d37d275299727ea4b..538f7e1813f6ab28eb2f09aad9e7f0971f929bb5 100644 (file)
@@ -98,8 +98,11 @@ wxSoundStreamWin::wxSoundStreamWin()
 
   m_waiting_for = FALSE;
 
-  if (!OpenDevice(wxSOUND_OUTPUT))
-    return;
+  if (!OpenDevice(wxSOUND_OUTPUT)) {
+    m_snderror = wxSOUND_NOERROR; //next call to OpenDevice won't do this
+    if (!OpenDevice(wxSOUND_INPUT))
+      return;
+  }
 
   CloseDevice();
 }