]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/sound.h
c5b39444e4e95e22051344f7c8c352f2a78c7ab5
1 /////////////////////////////////////////////////////////////////////////////
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(int size
, const wxByte
* data
);
27 // Create from resource or file
28 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
30 bool Create(int size
, const wxByte
* data
);
32 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
37 bool DoPlay(unsigned flags
) const;