X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76a5e5d21ee1a6230d777ce0209b2df4c6075f0f..757cc9def70e4685054f4a24238e2df111f6c9fd:/src/mac/wave.cpp diff --git a/src/mac/wave.cpp b/src/mac/wave.cpp index d06eee4838..01c7b9b035 100644 --- a/src/mac/wave.cpp +++ b/src/mac/wave.cpp @@ -19,6 +19,9 @@ #ifdef __WXMAC__ #include "wx/mac/private.h" +#ifndef __DARWIN__ +#include +#endif #endif wxWave::wxWave() @@ -35,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) { @@ -148,7 +156,7 @@ bool wxWave::Play(bool async, bool looped) const } -bool wxWave::Free() +bool wxWave::FreeData() { bool ret = false;