/////////////////////////////////////////////////////////////////////////////
-// Name: sound.cpp
+// Name: src/msw/sound.cpp
// Purpose: wxSound
// Author: Julian Smart
// Modified by: 2005-07-29: Vadim Zeitlin: redesign
// Created: 04/01/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
{
public:
// we copy the data
- wxSoundDataMemory(int size, const wxByte *buf);
+ wxSoundDataMemory(size_t size, const void* buf);
void *GetPtr() const { return m_waveDataPtr; }
// wxSoundData-derived classes
// ----------------------------------------------------------------------------
-wxSoundDataMemory::wxSoundDataMemory(int size, const wxByte *buf)
+wxSoundDataMemory::wxSoundDataMemory(size_t size, const void* buf)
: m_waveData(size),
m_waveDataPtr(m_waveData)
{
Create(filename, isResource);
}
-wxSound::wxSound(int size, const wxByte *data)
+wxSound::wxSound(size_t size, const void* data)
{
Init();
Create(size, data);
void wxSound::Free()
{
- if ( m_data )
- {
- delete m_data;
- m_data = NULL;
- }
+ wxDELETE(m_data);
}
bool wxSound::CheckCreatedOk()
return CheckCreatedOk();
}
-bool wxSound::Create(int size, const wxByte* data)
+bool wxSound::Create(size_t size, const void* data)
{
Free();