+ virtual bool IsOk() const { return !m_name.empty(); }
+ virtual DWORD GetSoundFlag() const
+ {
+ return m_isResource ? SND_RESOURCE : SND_FILENAME;
+ }
+ virtual LPCTSTR GetSoundData() const { return m_name.c_str(); }
+
+private:
+ const wxString m_name;
+ const bool m_isResource;
+
+ wxDECLARE_NO_COPY_CLASS(wxSoundDataFile);
+};
+
+// ============================================================================
+// implementation
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// wxSoundData-derived classes
+// ----------------------------------------------------------------------------
+
+wxSoundDataMemory::wxSoundDataMemory(int size, const wxByte *buf)
+ : m_waveData(size),
+ m_waveDataPtr(m_waveData)