]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/wave.cpp
removed conditional for Apple DevTools now that mac headers are not included
[wxWidgets.git] / src / mac / wave.cpp
index f0891a6546ce3f4ea0a873a42a376dd8a87549e0..d06eee48380ed2d31fd0e75a727ff983a968124e 100644 (file)
 #include "wx/string.h"
 #include "wx/wave.h"
 
+#ifdef __WXMAC__
+#include "wx/mac/private.h"
+#endif
+
 wxWave::wxWave()
   : m_sndChan(0), m_hSnd(NULL), m_waveLength(0), m_isResource(true)
 {
@@ -136,7 +140,7 @@ bool wxWave::Play(bool async, bool looped) const
          
          hSnd = (SndListHandle) GetNamedResource('snd ',(const unsigned char *) lpSnd);
 
-         if ((hSnd != NULL) && (SndPlay(m_sndChan, hSnd, async) == noErr))
+         if ((hSnd != NULL) && (SndPlay((SndChannelPtr)m_sndChan, (SndListHandle) hSnd, async) == noErr))
            ret = true;
        }