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,
34 "wxWave is not available on this platform.");
35 wxPyEndBlockThreads();
37 wxWave(int size, const wxByte* data) {
38 wxPyBeginBlockThreads();
39 PyErr_SetString(PyExc_NotImplementedError,
40 "wxWave is not available on this platform.");
41 wxPyEndBlockThreads();
46 bool IsOk() const { return False; }
47 bool Play(bool async = True, bool looped = False) const { return False; }
55 class wxWave /*: public wxObject*/
58 wxWave(const wxString& fileName, bool isResource = False);
60 %name(WaveData) wxWave(const wxString& data) {
61 return new wxWave(data.Len(), (wxByte*)data.c_str());
68 bool Play(bool async = True, bool looped = False);
70 %pythoncode { def __nonzero__(self): return self.IsOk() }
76 //---------------------------------------------------------------------------