X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f156e20c8e21594f901bfce15db4459208ec9571..3b96fc2f1b64f78bba7c755a5c14f618962f696b:/src/unix/sound_sdl.cpp?ds=sidebyside diff --git a/src/unix/sound_sdl.cpp b/src/unix/sound_sdl.cpp index 1ecc0212e1..12edf71953 100644 --- a/src/unix/sound_sdl.cpp +++ b/src/unix/sound_sdl.cpp @@ -56,8 +56,7 @@ END_DECLARE_EVENT_TYPES() DECLARE_EVENT_TABLE_ENTRY(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, \ -1, \ -1, \ - (wxObjectEventFunction) \ - (wxSoundBackendSDLNotificationFunction)& func, \ + (wxObjectEventFunction) wxStaticCastEvent( wxSoundBackendSDLNotificationFunction, & func ), \ (wxObject *) NULL ), IMPLEMENT_DYNAMIC_CLASS(wxSoundBackendSDLNotification, wxEvtHandler) @@ -305,7 +304,7 @@ bool wxSoundBackendSDL::Play(wxSoundData *data, unsigned flags, if (wxThread::IsMain()) wxMutexGuiLeave(); #endif - wxUsleep(10); + wxMilliSleep(10); #if wxUSE_THREADS if (wxThread::IsMain()) wxMutexGuiEnter();