]>
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"
20 #include "wx/object.h"
22 class WXDLLEXPORT wxWave
: public wxObject
26 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
27 wxWave(int size
, const wxByte
* data
);
31 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
32 bool IsOk() const { return !m_sndname
.IsEmpty(); }
33 bool Play(bool async
= TRUE
, bool looped
= FALSE
) const;
36 // prevent collision with some BSD definitions of macro Free()