-// wxSound used to be called wxWave before wxWindows 2.5.1:
-#ifdef __UNIX__ // FIXME: on all platforms when everything is renamed
- #if WXWIN_COMPATIBILITY_2_4
- typedef wxSound wxWave;
- #endif
-#else
- typedef wxWave wxSound;
+// ----------------------------------------------------------------------------
+// wxSoundBase methods
+// ----------------------------------------------------------------------------
+
+inline bool wxSoundBase::Play(const wxString& filename, unsigned flags)
+{
+ wxSound snd(filename);
+ 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);
+}