]>
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 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "wave.h"
21 #include "wx/object.h"
23 class WXDLLIMPEXP_ADV wxWave
: public wxObject
27 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
28 wxWave(int size
, const wxByte
* data
);
32 // Create from resource or file
33 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
35 bool Create(int size
, const wxByte
* data
);
37 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
38 bool Play(bool async
= TRUE
, bool looped
= FALSE
) const;
48 DECLARE_NO_COPY_CLASS(wxWave
)