X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8482f24cfc00645607f8526fde38d39e0dcaa63..a485900cf09c5654655e69af639e4f3f4bc4c486:/contrib/src/mmedia/sndg72x.cpp diff --git a/contrib/src/mmedia/sndg72x.cpp b/contrib/src/mmedia/sndg72x.cpp index 91245524b9..a51e2d19a9 100644 --- a/contrib/src/mmedia/sndg72x.cpp +++ b/contrib/src/mmedia/sndg72x.cpp @@ -4,12 +4,10 @@ // Date: 08/26/1999 // Author: Guilhem Lavaux (C) 1999 // CVSID: $Id$ +// wxWindows licence // -------------------------------------------------------------------------- -#ifdef __GNUG__ -#pragma implementation "sndg72x.cpp" -#endif -#include +#include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/defs.h" @@ -104,7 +102,7 @@ bool wxSoundFormatG72X::operator !=(const wxSoundFormatBase& frmt2) const wxSoundFormatG72X *g72x = (wxSoundFormatG72X *)&frmt2; if (frmt2.GetType() != wxSOUND_G72X) - return TRUE; + return true; return (g72x->m_srate != m_srate || g72x->m_g72x_type != m_g72x_type); } @@ -196,7 +194,7 @@ bool wxSoundStreamG72X::SetSoundFormat(const wxSoundFormatBase& format) { if (format.GetType() != wxSOUND_G72X) { m_snderror = wxSOUND_INVFRMT; - return FALSE; + return false; } wxSoundFormatPcm pcm; @@ -210,7 +208,7 @@ bool wxSoundStreamG72X::SetSoundFormat(const wxSoundFormatBase& format) pcm.SetSampleRate(g72x->GetSampleRate()); pcm.SetBPS(16); pcm.SetChannels(1); // Only mono supported - pcm.Signed(TRUE); + pcm.Signed(true); pcm.SetOrder(wxBYTE_ORDER); // Look for the correct codec to use and set its bit width @@ -235,7 +233,7 @@ bool wxSoundStreamG72X::SetSoundFormat(const wxSoundFormatBase& format) // Let the router finish the work m_router->SetSoundFormat(pcm); - return TRUE; + return true; } #define BYTE_SIZE 8