X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/os2/sound.cpp?ds=sidebyside diff --git a/src/os2/sound.cpp b/src/os2/sound.cpp index e073d9f7f2..a901a8dc33 100644 --- a/src/os2/sound.cpp +++ b/src/os2/sound.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: sound.cpp +// Name: src/os2/sound.cpp // Purpose: wxSound class implementation: optional // Author: David Webster // Modified by: @@ -42,7 +42,7 @@ wxSound::wxSound(const wxString& sFileName, bool isResource) Create(sFileName, isResource); } -wxSound::wxSound(int size, const wxByte* data) +wxSound::wxSound(size_t size, const void* data) : m_waveData(NULL), m_waveLength(0), m_isResource(FALSE) { Create(size, data); @@ -108,7 +108,7 @@ bool wxSound::Create(const wxString& fileName, bool isResource) } } -bool wxSound::Create(int size, const wxByte* data) +bool wxSound::Create(size_t size, const void* data) { Free(); m_isResource = FALSE; @@ -117,26 +117,27 @@ bool wxSound::Create(int size, const wxByte* data) if (!m_waveData) return FALSE; - for (int i=0; i