]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/sndaiff.h
3862ab35a831d473bdfc6a66d9dc3b410e1399d3
[wxWidgets.git] / utils / wxMMedia2 / lib / 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/stream.h>
16 #include "sndbase.h"
17 #include "sndcodec.h"
18 #include "sndfile.h"
19
20 //
21 // AIFF codec
22 //
23
24 class wxSoundAiff: public wxSoundFileStream {
25 public:
26 wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
27 wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
28 ~wxSoundAiff();
29
30 bool CanRead();
31 wxString GetCodecName() const;
32
33 protected:
34 bool PrepareToPlay();
35 bool PrepareToRecord(wxUint32 time);
36 bool FinishRecording();
37 bool RepositionStream(wxUint32 position);
38
39 wxUint32 GetData(void *buffer, wxUint32 len);
40 wxUint32 PutData(const void *buffer, wxUint32 len);
41 protected:
42 off_t m_base_offset;
43 };
44
45 #endif