1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWave class (loads and plays short Windows .wav files).
4 // Optional on non-Windows platforms.
5 // Author: Julian Smart
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
17 #pragma interface "wave.h"
20 #include "wx/object.h"
22 class wxWave
: public wxObject
26 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
30 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
31 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
32 bool Play(bool async
= TRUE
, bool looped
= FALSE
) const;