]>
git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndwav.h
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/defs.h"
20 #include "wx/mmedia/sndbase.h"
21 #include "wx/mmedia/sndcodec.h"
22 #include "wx/mmedia/sndfile.h"
28 class wxSoundWave
: public wxSoundFileStream
{
30 wxSoundWave(wxInputStream
& stream
, wxSoundStream
& io_sound
);
31 wxSoundWave(wxOutputStream
& stream
, wxSoundStream
& io_sound
);
35 wxString
GetCodecName() const;
39 bool PrepareToRecord(wxUint32 time
);
40 bool FinishRecording();
41 bool RepositionStream(wxUint32 position
);
43 wxUint32
GetData(void *buffer
, wxUint32 len
);
44 wxUint32
PutData(const void *buffer
, wxUint32 len
);
46 bool HandleOutputPCM(wxDataInputStream
& data
, wxUint32 len
,
47 wxUint16 channels
, wxUint32 sample_fq
,
48 wxUint32 byte_p_sec
, wxUint16 byte_p_spl
,
50 bool HandleOutputMSADPCM(wxDataInputStream
& data
, wxUint32 len
,
51 wxUint16 channels
, wxUint32 sample_fq
,
52 wxUint32 byte_p_sec
, wxUint16 byte_p_spl
,
54 bool HandleOutputG721(wxDataInputStream
& data
, wxUint32 len
,
55 wxUint16 channels
, wxUint32 sample_fq
,
56 wxUint32 byte_p_sec
, wxUint16 byte_p_spl
,
58 wxSoundFormatBase
*HandleInputPCM(wxDataOutputStream
& data
);
59 wxSoundFormatBase
*HandleInputG72X(wxDataOutputStream
& data
);