]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/wave.cpp
added mac l&f for rules and headers
[wxWidgets.git] / src / mac / wave.cpp
index ac2dcac7e0975e69eb810911937494416c4b9258..f0891a6546ce3f4ea0a873a42a376dd8a87549e0 100644 (file)
@@ -126,14 +126,18 @@ bool wxWave::Play(bool async, bool looped) const
        
        if (m_isResource) 
        {
-               strcpy(lpSnd, m_sndname); 
-               c2pstr((char *) lpSnd);
-               SndListHandle hSnd;
-               
-               hSnd = (SndListHandle) GetNamedResource('snd ',(const unsigned char *) lpSnd);
+#if TARGET_CARBON
+         c2pstrcpy((unsigned char *)lpSnd, m_sndname);
+#else
+         strcpy(lpSnd, m_sndname);
+         c2pstr((char *) lpSnd);
+#endif
+         SndListHandle hSnd;
+         
+         hSnd = (SndListHandle) GetNamedResource('snd ',(const unsigned char *) lpSnd);
 
-               if ((hSnd != NULL) && (SndPlay(m_sndChan, hSnd, async) == noErr))
-                       ret = true;
+         if ((hSnd != NULL) && (SndPlay(m_sndChan, hSnd, async) == noErr))
+           ret = true;
        } 
        
        return ret;