]>
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 /////////////////////////////////////////////////////////////////////////////
17 class WXDLLIMPEXP_ADV wxSound
: public wxSoundBase
21 wxSound(const wxString
& fileName
, bool isResource
= false);
22 wxSound(int size
, const wxByte
* data
);
25 // Create from resource or file
26 bool Create(const wxString
& fileName
, bool isResource
= false);
29 bool Create(int size
, const wxByte
* data
);
31 bool IsOk() const { return m_data
!= NULL
; }
36 void Init() { m_data
= NULL
; }
37 bool CheckCreatedOk();
40 virtual bool DoPlay(unsigned flags
) const;
43 // data of this object
44 class wxSoundData
*m_data
;
46 DECLARE_NO_COPY_CLASS(wxSound
)
51 #endif // _WX_SOUND_H_