// Date: 08/11/1999
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
// CVSID: $Id$
+// wxWindows licence
// --------------------------------------------------------------------------
#ifdef __GNUG__
#pragma implementation "sndmsad.cpp"
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);
}
{
// PCM converter
m_router = new wxSoundRouterStream(sndio);
- m_got_header = FALSE;
- m_stereo = FALSE;
+ m_got_header = false;
+ m_stereo = false;
}
wxSoundStreamMSAdpcm::~wxSoundStreamMSAdpcm()
{
if (format.GetType() != wxSOUND_MSADPCM) {
m_snderror = wxSOUND_INVFRMT;
- return FALSE;
+ return false;
}
wxSoundFormatPcm pcm;
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);
m_router->SetSoundFormat(pcm);
- return TRUE;
+ return true;
}