- bool Create(const wxString& fileName, bool isResource = FALSE);
- bool IsOk() const { return m_hSnd != NULL; }
- static void Stop();
- static bool IsPlaying();
-
- inline WX_NSSound GetNSSound()
- { return m_hSnd; }
-protected:
- bool DoPlay(unsigned flags) const;
-
+ bool Create(const wxString& fileName, bool isResource = false);
+ bool IsOk() const
+ { return m_cocoaNSSound; }
+ static void Stop();
+ static bool IsPlaying();
+
+ void SetNSSound(WX_NSSound cocoaNSSound);
+ inline WX_NSSound GetNSSound()
+ { return m_cocoaNSSound; }
+protected:
+ bool DoPlay(unsigned flags) const;
+ bool LoadWAV(const void* data, size_t length, bool copyData);