]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed a little the initialization code
authorGuilhem Lavaux <lavaux@easynet.fr>
Mon, 3 Apr 2000 17:41:16 +0000 (17:41 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Mon, 3 Apr 2000 17:41:16 +0000 (17:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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();
 }