#pragma implementation "sndbase.cpp"
#endif
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
+
+#ifndef WX_PRECOMP
+#include "wx/defs.h"
+#include "wx/string.h"
+#include "wx/log.h"
+#endif
+
#include "wx/mmedia/sndbase.h"
wxSoundFormatBase *wxSoundFormatBase::Clone() const
{
- return NULL;
+ wxLogFatalError(wxT("In wxSoundFormatBase::Clone() but I should")
+ wxT(" not be there"));
+ return NULL;
}
bool wxSoundFormatBase::operator!=(const wxSoundFormatBase& frmt2) const
{
- return (GetType() != frmt2.GetType());
+ return (GetType() != frmt2.GetType());
}
// ---------------------------------------------------------------------------
wxSoundStream::wxSoundStream()
{
- int i;
-
- // Reset all variables to their neutral value.
- m_sndformat = NULL;
- m_handler = NULL;
- m_snderror = wxSOUND_NOERROR;
- m_lastcount = 0;
- for (i=0;i<2;i++)
- m_callback[i] = NULL;
+ int i;
+
+ // Reset all variables to their neutral value.
+ m_sndformat = NULL;
+ m_handler = NULL;
+ m_snderror = wxSOUND_NOERROR;
+ m_lastcount = 0;
+ for (i=0;i<2;i++)
+ m_callback[i] = NULL;
}
wxSoundStream::~wxSoundStream()
{
if (m_sndformat)
- delete m_sndformat;
+ delete m_sndformat;
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
bool wxSoundStream::SetSoundFormat(const wxSoundFormatBase& format)
{
- // delete the previous prepared format
- if (m_sndformat)
- delete m_sndformat;
-
- // create a new one by cloning the format passed in parameter
- m_sndformat = format.Clone();
- return TRUE;
+ // delete the previous prepared format
+ if (m_sndformat)
+ delete m_sndformat;
+
+ // create a new one by cloning the format passed in parameter
+ m_sndformat = format.Clone();
+ return TRUE;
}