1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/msw/sound.h
3
// Purpose: wxSound class
4
// Author: Julian Smart
7
// RCS-ID: $Id: sound.h 69178 2011-09-21 15:08:02Z VZ $
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(size_t size, const void* data);
25
// Create from resource or file
26
bool Create(const wxString& fileName, bool isResource = false);
29
bool Create(size_t size, const void* 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
wxDECLARE_NO_COPY_CLASS(wxSound);
51
#endif // _WX_SOUND_H_