// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "sound.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
GlobalPtr m_waveData;
GlobalPtrLock m_waveDataPtr;
- DECLARE_NO_COPY_CLASS(wxSoundDataMemory)
+ wxDECLARE_NO_COPY_CLASS(wxSoundDataMemory);
};
// class for sound files and resources
const wxString m_name;
const bool m_isResource;
- DECLARE_NO_COPY_CLASS(wxSoundDataFile)
+ wxDECLARE_NO_COPY_CLASS(wxSoundDataFile);
};
// ============================================================================
void wxSound::Free()
{
- if ( m_data )
- {
- delete m_data;
- m_data = NULL;
- }
+ wxDELETE(m_data);
}
bool wxSound::CheckCreatedOk()