]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/sound.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/sound.h
3 // Purpose: wxSound class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
17 #include "wx/object.h"
19 class WXDLLIMPEXP_ADV wxSound
: public wxSoundBase
23 wxSound(const wxString
& fileName
, bool isResource
= false);
24 wxSound(int size
, const wxByte
* data
);
28 // Create from resource or file
29 bool Create(const wxString
& fileName
, bool isResource
= false);
31 bool Create(int size
, const wxByte
* data
);
33 bool IsOk() const { return (m_waveData
? true : false); };
40 bool DoPlay(unsigned flags
) const;
47 wxDECLARE_NO_COPY_CLASS(wxSound
);