X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce00f59b5b169752d2f05ce3bb1a88ddc1b38b4c..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/osx/carbon/sound.cpp diff --git a/src/osx/carbon/sound.cpp b/src/osx/carbon/sound.cpp index 3ae66a0b12..cfd49959a9 100644 --- a/src/osx/carbon/sound.cpp +++ b/src/osx/carbon/sound.cpp @@ -188,7 +188,7 @@ class wxOSXQuickTimeSoundData : public wxSoundData { public: wxOSXQuickTimeSoundData(const wxString& fileName); - wxOSXQuickTimeSoundData(int size, const wxByte* data); + wxOSXQuickTimeSoundData(size_t size, const void* data); ~wxOSXQuickTimeSoundData(); virtual bool Play(unsigned flags); @@ -208,7 +208,7 @@ wxOSXQuickTimeSoundData::wxOSXQuickTimeSoundData(const wxString& fileName) : m_sndname = fileName; } -wxOSXQuickTimeSoundData::wxOSXQuickTimeSoundData(int size, const wxByte* data) : +wxOSXQuickTimeSoundData::wxOSXQuickTimeSoundData(size_t size, const void* data) : m_movie(NULL) { m_soundHandle = NewHandleClear((Size)size); @@ -354,7 +354,7 @@ void wxOSXQuickTimeSoundData::SoundTask() MoviesTask(m_movie, MOVIE_DELAY); //Give QT time to play movie } -bool wxSound::Create(int size, const wxByte* data) +bool wxSound::Create(size_t size, const void* data) { m_data = new wxOSXQuickTimeSoundData(size,data); return true;