]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/sound.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSound class (loads and plays short Windows .wav files).
4 // Optional on non-Windows platforms.
5 // Author: Stefan Csomor
9 // Copyright: (c) Stefan Csomor
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
18 #include "wx/object.h"
20 class WXDLLEXPORT wxSound
: public wxSoundBase
24 wxSound(const wxString
& fileName
, bool isResource
= FALSE
);
25 wxSound(int size
, const wxByte
* data
);
29 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
30 bool IsOk() const { return !m_sndname
.IsEmpty(); }
33 // prevent collision with some BSD definitions of macro Free()
36 bool DoPlay(unsigned flags
) const;