//---------------------------------------------------------------------------
%{
-#if !wxUSE_WAVE
+#if !wxUSE_SOUND
// A C++ stub class for wxWave for platforms that don't have it.
class wxWave : public wxObject
{
public:
wxWave(const wxString& fileName, bool isResource = False) {
wxPyBeginBlockThreads();
- PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
+ PyErr_SetString(PyExc_NotImplementedError,
+ "wxWave is not available on this platform.");
wxPyEndBlockThreads();
}
wxWave(int size, const wxByte* data) {
wxPyBeginBlockThreads();
- PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
+ PyErr_SetString(PyExc_NotImplementedError,
+ "wxWave is not available on this platform.");
wxPyEndBlockThreads();
}
~wxWave();
bool IsOk() const;
- bool Play(bool async = True, bool looped = False) const;
+ bool Play(bool async = True, bool looped = False);
%pythoncode { def __nonzero__(self): return self.IsOk() }
};