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:
@@ -98,8 +98,11 @@ wxSoundStreamWin::wxSoundStreamWin()
|
|||||||
|
|
||||||
m_waiting_for = FALSE;
|
m_waiting_for = FALSE;
|
||||||
|
|
||||||
if (!OpenDevice(wxSOUND_OUTPUT))
|
if (!OpenDevice(wxSOUND_OUTPUT)) {
|
||||||
|
m_snderror = wxSOUND_NOERROR; //next call to OpenDevice won't do this
|
||||||
|
if (!OpenDevice(wxSOUND_INPUT))
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CloseDevice();
|
CloseDevice();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user