Changed a little the initialization code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux 2000-04-03 17:41:16 +00:00
parent 88b780d9f9
commit 8c6f3b9c6d

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