]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/mmedia/sndwav.h
removed libxpm dependencies from makefiles
[wxWidgets.git] / contrib / include / wx / mmedia / sndwav.h
CommitLineData
e8482f24
GL
1// --------------------------------------------------------------------------
2// Name: sndwav.h
3// Purpose:
4// Date: 08/11/1999
5// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6// CVSID: $Id$
7// --------------------------------------------------------------------------
8#ifndef _WX_SNDWAV_H
9#define _WX_SNDWAV_H
10
11#ifdef __GNUG__
12#pragma interface "sndwav.h"
13#endif
14
15#include "wx/defs.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"
22
23//
24// WAVE codec
25//
26
27class wxSoundWave: public wxSoundFileStream {
28public:
29 wxSoundWave(wxInputStream& stream, wxSoundStream& io_sound);
30 wxSoundWave(wxOutputStream& stream, wxSoundStream& io_sound);
31 ~wxSoundWave();
32
33 bool CanRead();
34 wxString GetCodecName() const;
35
36protected:
37 bool PrepareToPlay();
38 bool PrepareToRecord(wxUint32 time);
39 bool FinishRecording();
40 bool RepositionStream(wxUint32 position);
41
42 wxUint32 GetData(void *buffer, wxUint32 len);
43 wxUint32 PutData(const void *buffer, wxUint32 len);
44
c42b1de6
GL
45 bool HandleOutputPCM(wxDataInputStream& data, wxUint32 len,
46 wxUint16 channels, wxUint32 sample_fq,
47 wxUint32 byte_p_sec, wxUint16 byte_p_spl,
48 wxUint16 bits_p_spl);
49 bool HandleOutputMSADPCM(wxDataInputStream& data, wxUint32 len,
50 wxUint16 channels, wxUint32 sample_fq,
51 wxUint32 byte_p_sec, wxUint16 byte_p_spl,
52 wxUint16 bits_p_spl);
53 bool HandleOutputG721(wxDataInputStream& data, wxUint32 len,
54 wxUint16 channels, wxUint32 sample_fq,
55 wxUint32 byte_p_sec, wxUint16 byte_p_spl,
56 wxUint16 bits_p_spl);
e8482f24
GL
57 wxSoundFormatBase *HandleInputPCM(wxDataOutputStream& data);
58 wxSoundFormatBase *HandleInputG72X(wxDataOutputStream& data);
59
60protected:
61 off_t m_base_offset;
62};
63
64#endif