]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndaiff.h
added wxConvUI which determines the conversion used for the UI elements and can be...
[wxWidgets.git] / contrib / include / wx / mmedia / sndaiff.h
1 // --------------------------------------------------------------------------
2 // Name: sndaiff.h
3 // Purpose:
4 // Date: 08/11/1999
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6 // CVSID: $Id$
7 // License: wxWindows license
8 // --------------------------------------------------------------------------
9 #ifndef _WX_SNDAIFF_H
10 #define _WX_SNDAIFF_H
11
12 #include "wx/defs.h"
13 #include "wx/stream.h"
14 #include "wx/mmedia/defs.h"
15 #include "wx/mmedia/sndbase.h"
16 #include "wx/mmedia/sndcodec.h"
17 #include "wx/mmedia/sndfile.h"
18
19 //
20 // AIFF codec
21 //
22
23 class WXDLLIMPEXP_MMEDIA wxSoundAiff: public wxSoundFileStream {
24 public:
25 wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
26 wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
27 ~wxSoundAiff();
28
29 bool CanRead();
30 wxString GetCodecName() const;
31
32 protected:
33 bool PrepareToPlay();
34 bool PrepareToRecord(wxUint32 time);
35 bool FinishRecording();
36 bool RepositionStream(wxUint32 position);
37
38 wxUint32 GetData(void *buffer, wxUint32 len);
39 wxUint32 PutData(const void *buffer, wxUint32 len);
40 protected:
41 off_t m_base_offset;
42 };
43
44 #endif