]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndaiff.h
First shot at wxBitmap based wxCanvas.
[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 // --------------------------------------------------------------------------
8 #ifndef _WX_SNDAIFF_H
9 #define _WX_SNDAIFF_H
10
11 #ifdef __GNUG__
12 #pragma interface "sndaiff.h"
13 #endif
14
15 #include "wx/defs.h"
16 #include "wx/stream.h"
17 #include "wx/mmedia/sndbase.h"
18 #include "wx/mmedia/sndcodec.h"
19 #include "wx/mmedia/sndfile.h"
20
21 //
22 // AIFF codec
23 //
24
25 class WXDLLEXPORT wxSoundAiff: public wxSoundFileStream {
26 public:
27 wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
28 wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
29 ~wxSoundAiff();
30
31 bool CanRead();
32 wxString GetCodecName() const;
33
34 protected:
35 bool PrepareToPlay();
36 bool PrepareToRecord(wxUint32 time);
37 bool FinishRecording();
38 bool RepositionStream(wxUint32 position);
39
40 wxUint32 GetData(void *buffer, wxUint32 len);
41 wxUint32 PutData(const void *buffer, wxUint32 len);
42 protected:
43 off_t m_base_offset;
44 };
45
46 #endif