]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndaiff.h
use given position for page insertion instead of trying to find the page to insert...
[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 #ifdef __GNUG__
13 #pragma interface "sndaiff.h"
14 #endif
15
16 #include "wx/defs.h"
17 #include "wx/stream.h"
18 #include "wx/mmedia/defs.h"
19 #include "wx/mmedia/sndbase.h"
20 #include "wx/mmedia/sndcodec.h"
21 #include "wx/mmedia/sndfile.h"
22
23 //
24 // AIFF codec
25 //
26
27 class WXDLLIMPEXP_MMEDIA wxSoundAiff: public wxSoundFileStream {
28 public:
29 wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
30 wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
31 ~wxSoundAiff();
32
33 bool CanRead();
34 wxString GetCodecName() const;
35
36 protected:
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 protected:
45 off_t m_base_offset;
46 };
47
48 #endif