]>
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(); }
38 // prevent collision with some BSD definitions of macro Free()
41 bool DoPlay(unsigned flags
) const;
44 wxString m_sndname
; //file path
45 char* m_hSnd
; //pointer to resource or memory location
46 int m_waveLength
; //size of file in memory mode
47 void* m_pTimer
; //timer