From: Włodzimierz Skiba Date: Wed, 26 May 2004 08:47:53 +0000 (+0000) Subject: Unhide problem of ambiguity in wxSoundBase::Play. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fc57ba54762137147ae04a2366dc7074e0507182 Unhide problem of ambiguity in wxSoundBase::Play. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/sound/sound.cpp b/samples/sound/sound.cpp index 85ea3ba494..8964f6dbc4 100644 --- a/samples/sound/sound.cpp +++ b/samples/sound/sound.cpp @@ -225,7 +225,7 @@ void MyFrame::OnPlaySync(wxCommandEvent& WXUNUSED(event)) if (!m_sound) m_sound = new wxSound(m_soundFile); if (m_sound->IsOk()) - m_sound->Play((unsigned)wxSOUND_SYNC); + m_sound->Play(wxSOUND_SYNC); } void MyFrame::OnPlayAsync(wxCommandEvent& WXUNUSED(event)) @@ -234,7 +234,7 @@ void MyFrame::OnPlayAsync(wxCommandEvent& WXUNUSED(event)) if (!m_sound) m_sound = new wxSound(m_soundFile); if (m_sound->IsOk()) - m_sound->Play((unsigned)wxSOUND_ASYNC); + m_sound->Play(wxSOUND_ASYNC); } void MyFrame::OnPlayAsyncOnStack(wxCommandEvent& WXUNUSED(event)) @@ -242,7 +242,7 @@ void MyFrame::OnPlayAsyncOnStack(wxCommandEvent& WXUNUSED(event)) wxBusyCursor busy; wxSound snd(m_soundFile); if (snd.IsOk()) - snd.Play((unsigned)wxSOUND_ASYNC); + snd.Play(wxSOUND_ASYNC); } void MyFrame::OnPlayLoop(wxCommandEvent& WXUNUSED(event)) @@ -251,7 +251,7 @@ void MyFrame::OnPlayLoop(wxCommandEvent& WXUNUSED(event)) if (!m_sound) m_sound = new wxSound(m_soundFile); if (m_sound->IsOk()) - m_sound->Play((unsigned)(wxSOUND_ASYNC | wxSOUND_LOOP)); + m_sound->Play(wxSOUND_ASYNC | wxSOUND_LOOP); } void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))