]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/wave.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWave class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "wave.h"
19 #include "wx/object.h"
22 #define AUDIODEV "/dev/dsp" // Default path for audio device
25 class wxWave
: public wxObject
29 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
30 wxWave(int size
, const wxByte
* data
);
34 // Create from resource or file
35 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
37 bool Create(int size
, const wxByte
* data
);
39 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
40 bool Play(bool async
= TRUE
, bool looped
= FALSE
);
52 bool InitDSP(int dev
, int iDataBits
, int iChannel
,unsigned long ulSamplingRate
);
53 int m_DSPblkSize
; // Size of the DSP buffer