]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/sound.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/sound.h
3 // Purpose: wxSound class (loads and plays short Windows .wav files).
4 // Optional on non-Windows platforms.
5 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
17 class wxSound
: public wxSoundBase
21 wxSound(const wxString
& fileName
, bool isResource
= FALSE
);
22 wxSound(size_t size
, const void* data
);
26 // Create from resource or file
27 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
29 bool Create(size_t size
, const void* data
);
31 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); }
36 bool DoPlay(unsigned flags
) const;