]>
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
9 // Copyright: (c) David Webster
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/object.h"
18 class wxSound
: public wxSoundBase
22 wxSound(const wxString
& fileName
, bool isResource
= FALSE
);
23 wxSound(size_t size
, const void* data
);
27 // Create from resource or file
28 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
30 bool Create(size_t size
, const void* data
);
32 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); }
37 bool DoPlay(unsigned flags
) const;