]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wave.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWave class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "wave.h"
19 #include "wx/object.h"
21 class WXDLLEXPORT wxWave
: public wxObject
25 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
26 wxWave(int size
, const wxByte
* data
);
30 // Create from resource or file
31 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
33 bool Create(int size
, const wxByte
* data
);
35 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
36 bool Play(bool async
= TRUE
, bool looped
= FALSE
) const;