X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66a09d4776b8ae390d5aa51dbd678b694f2c81d6..62d3ee70e51f335188a788372a3e66acbcd0bb63:/src/mac/carbon/wave.cpp diff --git a/src/mac/carbon/wave.cpp b/src/mac/carbon/wave.cpp index 205c5d5ceb..01c7b9b035 100644 --- a/src/mac/carbon/wave.cpp +++ b/src/mac/carbon/wave.cpp @@ -38,9 +38,14 @@ wxWave::wxWave(const wxString& sFileName, bool isResource) wxWave::~wxWave() { - Free(); + FreeData(); } +wxWave::wxWave(int size, const wxByte* data) + : m_sndChan(0), m_hSnd(NULL), m_waveLength(0), m_isResource(false) +{ + //TODO convert data +} bool wxWave::Create(const wxString& fileName, bool isResource) { @@ -151,7 +156,7 @@ bool wxWave::Play(bool async, bool looped) const } -bool wxWave::Free() +bool wxWave::FreeData() { bool ret = false;