X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f815011ffb2a69481a91a20b2010fa0181a8fca5..08dd04d0829cd2c4defe5233f061221d534dee0d:/contrib/src/mmedia/sndmsad.cpp diff --git a/contrib/src/mmedia/sndmsad.cpp b/contrib/src/mmedia/sndmsad.cpp index e120f4a223..30181b0aac 100644 --- a/contrib/src/mmedia/sndmsad.cpp +++ b/contrib/src/mmedia/sndmsad.cpp @@ -4,6 +4,7 @@ // Date: 08/11/1999 // Author: Guilhem Lavaux (C) 1999 // CVSID: $Id$ +// wxWindows licence // -------------------------------------------------------------------------- #ifdef __GNUG__ #pragma implementation "sndmsad.cpp" @@ -66,7 +67,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; @@ -130,7 +131,7 @@ bool wxSoundFormatMSAdpcm::operator !=(const wxSoundFormatBase& frmt2) const const wxSoundFormatMSAdpcm *adpcm = (const wxSoundFormatMSAdpcm *)&frmt2; if (frmt2.GetType() != wxSOUND_MSADPCM) - return TRUE; + return true; return (adpcm->m_srate != m_srate) && (adpcm->m_nchannels != m_nchannels); } @@ -143,8 +144,8 @@ wxSoundStreamMSAdpcm::wxSoundStreamMSAdpcm(wxSoundStream& sndio) { // PCM converter m_router = new wxSoundRouterStream(sndio); - m_got_header = FALSE; - m_stereo = FALSE; + m_got_header = false; + m_stereo = false; } wxSoundStreamMSAdpcm::~wxSoundStreamMSAdpcm() @@ -152,7 +153,7 @@ wxSoundStreamMSAdpcm::~wxSoundStreamMSAdpcm() delete m_router; } -wxSoundStream& wxSoundStreamMSAdpcm::Read(void *buffer, wxUint32 len) +wxSoundStream& wxSoundStreamMSAdpcm::Read(void *WXUNUSED(buffer), wxUint32 WXUNUSED(len)) { m_snderror = wxSOUND_NOCODEC; m_lastcount = 0; @@ -354,7 +355,7 @@ bool wxSoundStreamMSAdpcm::SetSoundFormat(const wxSoundFormatBase& format) { if (format.GetType() != wxSOUND_MSADPCM) { m_snderror = wxSOUND_INVFRMT; - return FALSE; + return false; } wxSoundFormatPcm pcm; @@ -369,13 +370,13 @@ bool wxSoundStreamMSAdpcm::SetSoundFormat(const wxSoundFormatBase& format) if (!ncoefs) { wxLogError(wxT("Number of ADPCM coefficients must be non null")); - return FALSE; + return false; } pcm.SetSampleRate(adpcm->GetSampleRate()); pcm.SetBPS(16); pcm.SetChannels(adpcm->GetChannels()); - pcm.Signed(TRUE); + pcm.Signed(true); pcm.SetOrder(wxBYTE_ORDER); m_stereo = (adpcm->GetChannels() == 2); @@ -384,6 +385,6 @@ bool wxSoundStreamMSAdpcm::SetSoundFormat(const wxSoundFormatBase& format) m_router->SetSoundFormat(pcm); - return TRUE; + return true; }