]>
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: Ryan Norton, Stefan Csomor
9 // Copyright: (c) Ryan Norton, Stefan Csomor
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
18 #include "wx/object.h"
20 class WXDLLIMPEXP_ADV 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(); }
32 static bool IsPlaying();
36 bool DoPlay(unsigned flags
) const;
39 wxString m_sndname
; //file path
40 char* m_hSnd
; //pointer to resource or memory location
41 int m_waveLength
; //size of file in memory mode
42 void* m_pTimer
; //timer