1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface stuff for wxWave
7 // Created: 18-June-1999
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
23 //---------------------------------------------------------------------------
27 // A C++ stub class for wxWave for platforms that don't have it.
28 class wxWave : public wxObject
31 wxWave(const wxString& fileName, bool isResource = False) {
32 wxPyBeginBlockThreads();
33 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
34 wxPyEndBlockThreads();
36 wxWave(int size, const wxByte* data) {
37 wxPyBeginBlockThreads();
38 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
39 wxPyEndBlockThreads();
44 bool IsOk() const { return False; }
45 bool Play(bool async = True, bool looped = False) const { return False; }
53 class wxWave /*: public wxObject*/
56 wxWave(const wxString& fileName, bool isResource = False);
58 %name(WaveData) wxWave(const wxString& data) {
59 return new wxWave(data.Len(), (wxByte*)data.c_str());
66 bool Play(bool async = True, bool looped = False);
68 %pythoncode { def __nonzero__(self): return self.IsOk() }
74 //---------------------------------------------------------------------------