]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "sound.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
19 #if defined(__BORLANDC__)
31 #include "wx/palmos/private.h"
34 : m_waveData(NULL
), m_waveLength(0), m_isResource(false)
38 wxSound::wxSound(const wxString
& sFileName
, bool isResource
)
39 : m_waveData(NULL
), m_waveLength(0), m_isResource(isResource
)
43 wxSound::wxSound(int size
, const wxByte
* data
)
44 : m_waveData(NULL
), m_waveLength(0), m_isResource(false)
52 bool wxSound::Create(const wxString
& fileName
, bool isResource
)
57 bool wxSound::Create(int size
, const wxByte
* data
)
62 bool wxSound::DoPlay(unsigned flags
) const
72 /*static*/ void wxSound::Stop()