X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..3f4a2351e4c677c88c18ea812b609477adee7380:/src/mac/classic/sound.cpp?ds=inline diff --git a/src/mac/classic/sound.cpp b/src/mac/classic/sound.cpp index d6d13bb595..8f3eed837e 100644 --- a/src/mac/classic/sound.cpp +++ b/src/mac/classic/sound.cpp @@ -1,23 +1,25 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: sound.cpp +// Name: src/mac/classic/sound.cpp // Purpose: wxSound class implementation: optional // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "sound.h" -#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#if wxUSE_SOUND -#include "wx/object.h" -#include "wx/string.h" #include "wx/sound.h" -#if wxUSE_SOUND +#ifndef WX_PRECOMP + #include "wx/object.h" + #include "wx/string.h" +#endif #ifdef __WXMAC__ #include "wx/mac/private.h" @@ -139,14 +141,14 @@ bool wxSound::DoPlay(unsigned flags) const if (m_isResource) { - Str255 snd ; - wxMacStringToPascal( m_sndname , snd ) ; - SndListHandle hSnd; + Str255 snd ; + wxMacStringToPascal( m_sndname , snd ) ; + SndListHandle hSnd; - hSnd = (SndListHandle) GetNamedResource('snd ', snd); + hSnd = (SndListHandle) GetNamedResource('snd ', snd); - if ((hSnd != NULL) && (SndPlay((SndChannelPtr)m_sndChan, (SndListHandle) hSnd, (flags & wxSOUND_ASYNC)) == noErr)) - ret = true; + if ((hSnd != NULL) && (SndPlay((SndChannelPtr)m_sndChan, (SndListHandle) hSnd, (flags & wxSOUND_ASYNC)) == noErr)) + ret = true; } return ret; @@ -239,5 +241,4 @@ void TimerCallBack(HWND hwnd,UINT uMsg,UINT idEvent,DWORD dwTime) KillTimer(0,timerID); }*/ - -#endif +#endif // wxUSE_SOUND