]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/wave.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWave class (loads and plays short Windows .wav files).
4 // Optional on non-Windows platforms.
5 // Author: David Webster
9 // Copyright: (c) David Webster
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/object.h"
18 class wxWave
: public wxObject
22 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
23 wxWave(int size
, const wxByte
* data
);
27 // Create from resource or file
28 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
30 bool Create(int size
, const wxByte
* data
);
32 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
33 bool Play(bool async
= TRUE
, bool looped
= FALSE
) const;