X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92a19c2e7757ba742846f83e56356de0a607bdc2..90c108964caba82a62602c7eef1268d4bb6e4841:/contrib/src/mmedia/sndmsad.cpp?ds=inline diff --git a/contrib/src/mmedia/sndmsad.cpp b/contrib/src/mmedia/sndmsad.cpp index 6024e8e4c1..3f627c63ed 100644 --- a/contrib/src/mmedia/sndmsad.cpp +++ b/contrib/src/mmedia/sndmsad.cpp @@ -66,7 +66,7 @@ wxUint16 wxSoundFormatMSAdpcm::GetChannels() const return m_nchannels; } -void wxSoundFormatMSAdpcm::SetCoefs(wxInt16 **coefs, wxUint16 ncoefs, +void wxSoundFormatMSAdpcm::SetCoefs(wxInt16 **WXUNUSED(coefs), wxUint16 ncoefs, wxUint16 coefs_len) { wxUint16 i; @@ -77,7 +77,7 @@ void wxSoundFormatMSAdpcm::SetCoefs(wxInt16 **coefs, wxUint16 ncoefs, delete[] m_coefs; } // TODO: Add some memory checking here - m_coefs = new (wxInt16 *)[ncoefs]; + m_coefs = new wxInt16 *[ncoefs]; for (i=0;iGetCoefs(m_coefs, ncoefs, coefs_len); if (!ncoefs) { - wxLogError(__FILE__ ":%d: Number of ADPCM coefficients" - " must be non null", __LINE__); + wxLogError(wxT("Number of ADPCM coefficients must be non null")); return FALSE; }