]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/wave.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWave class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
19 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
20 #pragma interface "wave.h"
23 #include "wx/object.h"
26 #define AUDIODEV "/dev/dsp" // Default path for audio device
29 class wxWave
: public wxObject
33 wxWave(const wxString
& fileName
, bool isResource
= FALSE
);
34 wxWave(int size
, const wxByte
* data
);
38 // Create from resource or file
39 bool Create(const wxString
& fileName
, bool isResource
= FALSE
);
41 bool Create(int size
, const wxByte
* data
);
43 bool IsOk() const { return (m_waveData
? TRUE
: FALSE
); };
44 bool Play(bool async
= TRUE
, bool looped
= FALSE
);
56 bool InitDSP(int dev
, int iDataBits
, int iChannel
,unsigned long ulSamplingRate
);
57 int m_DSPblkSize
; // Size of the DSP buffer