]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/sound.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/sound.h
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 class WXDLLIMPEXP_ADV wxSound
: public wxSoundBase
25 wxSound(const wxString
& fileName
, bool isResource
= false);
26 wxSound(int size
, const wxByte
* data
);
29 // Create from resource or file
30 bool Create(const wxString
& fileName
, bool isResource
= false);
33 bool Create(int size
, const wxByte
* data
);
35 bool IsOk() const { return m_data
!= NULL
; }
40 void Init() { m_data
= NULL
; }
41 bool CheckCreatedOk();
44 virtual bool DoPlay(unsigned flags
) const;
47 // data of this object
48 class wxSoundData
*m_data
;
50 DECLARE_NO_COPY_CLASS(wxSound
)
55 #endif // _WX_SOUND_H_