/////////////////////////////////////////////////////////////////////////////
-// Name: sound.cpp
+// Name: src/msw/sound.cpp
// Purpose: wxSound
// Author: Julian Smart
// Modified by: 2005-07-29: Vadim Zeitlin: redesign
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()