removed WXWIN_COMPATIBILITY_2_4 from common and wxMSW files (patch 1675546)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,9 +46,6 @@ public:
|
||||
_T("sound can only be looped asynchronously") );
|
||||
return DoPlay(flags);
|
||||
}
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
wxDEPRECATED( bool Play(bool async, bool looped = false) const );
|
||||
#endif
|
||||
|
||||
// Plays sound from filename:
|
||||
static bool Play(const wxString& filename, unsigned flags = wxSOUND_ASYNC);
|
||||
@@ -83,16 +80,6 @@ inline bool wxSoundBase::Play(const wxString& filename, unsigned flags)
|
||||
return snd.IsOk() ? snd.Play(flags) : false;
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
inline bool wxSoundBase::Play(bool async, bool looped) const
|
||||
{
|
||||
unsigned flags = 0;
|
||||
if (async) flags |= wxSOUND_ASYNC;
|
||||
if (looped) flags |= wxSOUND_LOOP | wxSOUND_ASYNC;
|
||||
return DoPlay(flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // wxUSE_SOUND
|
||||
|
||||
#endif // _WX_SOUND_H_BASE_
|
||||
|
Reference in New Issue
Block a user