// Author: David Webster
// Modified by:
// Created: 10/17/99
-// RCS-ID: $Id$
// Copyright: (c) David Webster
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
Create(sFileName, isResource);
}
-wxSound::wxSound(int size, const wxByte* data)
+wxSound::wxSound(size_t size, const void* data)
: m_waveData(NULL), m_waveLength(0), m_isResource(FALSE)
{
Create(size, data);
}
}
-bool wxSound::Create(int size, const wxByte* data)
+bool wxSound::Create(size_t size, const void* data)
{
Free();
m_isResource = FALSE;
if (!m_waveData)
return FALSE;
- for (int i=0; i<size; i++) m_waveData[i] = data[i];
+ memcpy(m_waveData, data, size);
return TRUE;
}