]>
git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndwav.h
caebec408066ef8aa6438e57cd95b80a9f1de26b
1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndwav.h"
16 #include "wx/string.h"
17 #include "wx/stream.h"
18 #include "wx/datstrm.h"
19 #include "wx/mmedia/sndbase.h"
20 #include "wx/mmedia/sndcodec.h"
21 #include "wx/mmedia/sndfile.h"
27 class wxSoundWave
: public wxSoundFileStream
{
29 wxSoundWave(wxInputStream
& stream
, wxSoundStream
& io_sound
);
30 wxSoundWave(wxOutputStream
& stream
, wxSoundStream
& io_sound
);
34 wxString
GetCodecName() const;
38 bool PrepareToRecord(wxUint32 time
);
39 bool FinishRecording();
40 bool RepositionStream(wxUint32 position
);
42 wxUint32
GetData(void *buffer
, wxUint32 len
);
43 wxUint32
PutData(const void *buffer
, wxUint32 len
);
45 bool HandleOutputPCM(wxDataInputStream
& data
, wxUint32 len
,
46 wxUint16 channels
, wxUint32 sample_fq
,
47 wxUint32 byte_p_sec
, wxUint16 byte_p_spl
,
49 bool HandleOutputMSADPCM(wxDataInputStream
& data
, wxUint32 len
,
50 wxUint16 channels
, wxUint32 sample_fq
,
51 wxUint32 byte_p_sec
, wxUint16 byte_p_spl
,
53 bool HandleOutputG721(wxDataInputStream
& data
, wxUint32 len
,
54 wxUint16 channels
, wxUint32 sample_fq
,
55 wxUint32 byte_p_sec
, wxUint16 byte_p_spl
,
57 wxSoundFormatBase
*HandleInputPCM(wxDataOutputStream
& data
);
58 wxSoundFormatBase
*HandleInputG72X(wxDataOutputStream
& data
);