]>
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
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
16 class WXDLLIMPEXP_ADV wxSound
: public wxSoundBase
20 wxSound(const wxString
& fileName
, bool isResource
= false);
21 wxSound(size_t size
, const void* data
);
24 // Create from resource or file
25 bool Create(const wxString
& fileName
, bool isResource
= false);
28 bool Create(size_t size
, const void* data
);
30 bool IsOk() const { return m_data
!= NULL
; }
35 void Init() { m_data
= NULL
; }
36 bool CheckCreatedOk();
39 virtual bool DoPlay(unsigned flags
) const;
42 // data of this object
43 class wxSoundData
*m_data
;
45 wxDECLARE_NO_COPY_CLASS(wxSound
);
50 #endif // _WX_SOUND_H_