]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/mmedia/sndaiff.h
Include wx/dialog.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / contrib / include / wx / mmedia / sndaiff.h
CommitLineData
e8482f24
GL
1// --------------------------------------------------------------------------
2// Name: sndaiff.h
3// Purpose:
4// Date: 08/11/1999
5// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6// CVSID: $Id$
05aa8cf3 7// License: wxWindows license
e8482f24
GL
8// --------------------------------------------------------------------------
9#ifndef _WX_SNDAIFF_H
10#define _WX_SNDAIFF_H
11
e8482f24
GL
12#include "wx/defs.h"
13#include "wx/stream.h"
15e8daec 14#include "wx/mmedia/defs.h"
e8482f24
GL
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
15e8daec 23class WXDLLIMPEXP_MMEDIA wxSoundAiff: public wxSoundFileStream {
e8482f24
GL
24public:
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
32protected:
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);
40protected:
41 off_t m_base_offset;
42};
43
44#endif