]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/sndwav.h
1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndwav.h"
16 #include <wx/stream.h>
17 #include <wx/datstrm.h>
26 class wxSoundWave
: public wxSoundFileStream
{
28 wxSoundWave(wxInputStream
& stream
, wxSoundStream
& io_sound
);
29 wxSoundWave(wxOutputStream
& stream
, wxSoundStream
& io_sound
);
33 wxString
GetCodecName() const;
37 bool PrepareToRecord(wxUint32 time
);
38 bool FinishRecording();
39 bool RepositionStream(wxUint32 position
);
41 wxUint32
GetData(void *buffer
, wxUint32 len
);
42 wxUint32
PutData(const void *buffer
, wxUint32 len
);
44 bool HandleOutputPCM(wxDataInputStream
& data
, wxUint16 channels
,
45 wxUint32 sample_fq
, wxUint32 byte_p_sec
,
46 wxUint16 byte_p_spl
, wxUint16 bits_p_spl
);
47 bool HandleOutputG721(wxDataInputStream
& data
, wxUint16 channels
,
48 wxUint32 sample_fq
, wxUint32 byte_p_sec
,
49 wxUint16 byte_p_spl
, wxUint16 bits_p_spl
);
50 wxSoundFormatBase
*HandleInputPCM(wxDataOutputStream
& data
);
51 wxSoundFormatBase
*HandleInputG72X(wxDataOutputStream
& data
);