X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c781c31638cc5ae06eb325567323f131e8183a75..cdf003d46547475ab3fe3d770467458b124c6868:/src/unix/sound.cpp?ds=sidebyside diff --git a/src/unix/sound.cpp b/src/unix/sound.cpp index 3871409e7e..fbd9802383 100644 --- a/src/unix/sound.cpp +++ b/src/unix/sound.cpp @@ -9,11 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "sound.h" -#pragma implementation "soundbase.h" -#endif - // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -452,7 +447,8 @@ wxSound::~wxSound() Free(); } -bool wxSound::Create(const wxString& fileName, bool isResource) +bool wxSound::Create(const wxString& fileName, + bool WXUNUSED_UNLESS_DEBUG(isResource)) { wxASSERT_MSG( !isResource, _T("Loading sound from resources is only supported on Windows") ); @@ -471,7 +467,7 @@ bool wxSound::Create(const wxString& fileName, bool isResource) size_t len = wx_truncate_cast(size_t, lenOrig); wxUint8 *data = new wxUint8[len]; - if (fileWave.Read(data, len) != len) + if ( fileWave.Read(data, len) != lenOrig ) { wxLogError(_("Couldn't load sound data from '%s'."), fileName.c_str()); return false;