]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/sound.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSound 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 "sound.h"
21 #include "wx/object.h"
23 class WXDLLIMPEXP_ADV wxSound
: public wxSoundBase
27 wxSound(const wxString
& fileName
, bool isResource
= false);
28 wxSound(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); };
44 bool DoPlay(unsigned flags
) const;
51 DECLARE_NO_COPY_CLASS(wxSound
)