#pragma implementation "wave.h"
#endif
+#include <wx/setup.h>
+
+#if wxUSE_WAVE
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
//-----------------------------------------------------------------
wxWave::wxWave()
- : m_waveLength(0), m_isResource(FALSE), m_waveData(NULL)
+ : m_waveData(NULL), m_waveLength(0), m_isResource(FALSE)
{
}
wxWave::wxWave(const wxString& sFileName, bool isResource)
- : m_waveLength(0), m_isResource(isResource), m_waveData(NULL)
+ : m_waveData(NULL), m_waveLength(0), m_isResource(isResource)
{
Create(sFileName, isResource);
}
-wxWave::wxWave(int size, const byte* data)
- : m_waveLength(0), m_isResource(FALSE), m_waveData(NULL)
+wxWave::wxWave(int size, const wxByte* data)
+ : m_waveData(NULL), m_waveLength(0), m_isResource(FALSE)
{
Create(size, data);
}
m_waveLength = (int) fileWave.Length();
- m_waveData = new byte[m_waveLength];
+ m_waveData = new wxByte[m_waveLength];
if (!m_waveData)
{
return FALSE;
}
}
-bool wxWave::Create(int size, const byte* data)
+bool wxWave::Create(int size, const wxByte* data)
{
Free();
m_isResource = FALSE;
m_waveLength=size;
- m_waveData = new byte[size];
+ m_waveData = new wxByte[size];
if (!m_waveData)
{
return FALSE;
return TRUE;
}
+#endif