From: Guilhem Lavaux Date: Mon, 3 Apr 2000 17:41:16 +0000 (+0000) Subject: Changed a little the initialization code X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8c6f3b9c6d214686e0496b318fd35f8fc007a1e8 Changed a little the initialization code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/mmedia/sndwin.cpp b/contrib/src/mmedia/sndwin.cpp index 185f1bfb5e..538f7e1813 100644 --- a/contrib/src/mmedia/sndwin.cpp +++ b/contrib/src/mmedia/sndwin.cpp @@ -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(); }