]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/sound.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/sound.cpp
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
15 #if defined(__BORLANDC__)
27 #include "wx/palmos/private.h"
30 : m_waveData(NULL
), m_waveLength(0), m_isResource(false)
34 wxSound::wxSound(const wxString
& sFileName
, bool isResource
)
35 : m_waveData(NULL
), m_waveLength(0), m_isResource(isResource
)
39 wxSound::wxSound(int size
, const wxByte
* data
)
40 : m_waveData(NULL
), m_waveLength(0), m_isResource(false)
48 bool wxSound::Create(const wxString
& fileName
, bool isResource
)
53 bool wxSound::Create(int size
, const wxByte
* data
)
58 bool wxSound::DoPlay(unsigned flags
) const
68 /*static*/ void wxSound::Stop()