X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b3644c7150647206f57924e26ef71793ef5fa27..3030ae493df7500fd5da7555f141c0c8a690bd8a:/contrib/src/mmedia/cdwin.cpp diff --git a/contrib/src/mmedia/cdwin.cpp b/contrib/src/mmedia/cdwin.cpp index 1752cc1810..8ccc325d11 100644 --- a/contrib/src/mmedia/cdwin.cpp +++ b/contrib/src/mmedia/cdwin.cpp @@ -7,9 +7,6 @@ // Copyright: (C) 1997, 1998, Guilhem Lavaux // License: wxWindows license //////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "cdwin.h" -#endif #include "wx/wxprec.h" @@ -46,7 +43,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxCDAudioWin, wxCDAudio) wxCDAudioWin::wxCDAudioWin(void) - : wxCDAudio(), m_trksize(NULL), m_trkpos(NULL), m_toc(NULL), m_ok(TRUE) + : wxCDAudio(), m_trksize(NULL), m_trkpos(NULL), m_toc(NULL), m_ok(true) { MCI_OPEN_PARMS open_struct; MCI_SET_PARMS set_struct; @@ -56,7 +53,7 @@ wxCDAudioWin::wxCDAudioWin(void) DWORD ret = mciSendCommand((MCIDEVICEID)NULL, MCI_OPEN, MCI_OPEN_TYPE, (DWORD)&open_struct); if (ret) { - m_ok = FALSE; + m_ok = false; return; } m_internal->dev_id = open_struct.wDeviceID; @@ -150,7 +147,7 @@ bool wxCDAudioWin::Play(const wxCDtime& beg_time, const wxCDtime& end_time) MCI_PLAY_PARMS play_struct; if (!m_ok) - return FALSE; + return false; tmsf = MCI_MAKE_TMSF(beg_time.track, beg_time.min, beg_time.sec, 0); @@ -160,13 +157,13 @@ bool wxCDAudioWin::Play(const wxCDtime& beg_time, const wxCDtime& end_time) play_struct.dwTo = tmsf; mciSendCommand(m_internal->dev_id, MCI_PLAY, 0, (DWORD)&play_struct); - return TRUE; + return true; } bool wxCDAudioWin::Pause(void) { if (!m_ok) - return FALSE; + return false; return (mciSendCommand(m_internal->dev_id, MCI_PAUSE, 0, 0) == 0); } @@ -174,7 +171,7 @@ bool wxCDAudioWin::Pause(void) bool wxCDAudioWin::Resume(void) { if (!m_ok) - return FALSE; + return false; return (mciSendCommand(m_internal->dev_id, MCI_RESUME, 0, 0) == 0); }