]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/wave.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWave class (loads and plays short Windows .wav files).
4 // Optional on non-Windows platforms.
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
16 #if defined(__GNUG__) && !defined(__APPLE__)
17 #pragma interface "wave.h"
22 #include "wx/object.h"
24 class WXDLLEXPORT wxWave
: public wxObject
28 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
29 wxWave(int size
, const wxByte
* data
);
33 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
34 bool IsOk() const { return !m_sndname
.IsEmpty(); }
35 bool Play(bool async
= TRUE
, bool looped
= FALSE
) const;
38 // prevent collision with some BSD definitions of macro Free()