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