]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/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 /////////////////////////////////////////////////////////////////////////////
16 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 #pragma interface "sound.h"
22 #include "wx/object.h"
24 class WXDLLEXPORT wxSound
: public wxSoundBase
28 wxSound(const wxString
& fileName
, bool isResource
= FALSE
);
29 wxSound(int size
, const wxByte
* data
);
33 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
34 bool IsOk() const { return !m_sndname
.IsEmpty(); }
37 // prevent collision with some BSD definitions of macro Free()
40 bool DoPlay(unsigned flags
) const;