]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/sndaiff.h
1 // /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMMedia Aiff Codec
4 // Author: Guilhem Lavaux
6 // Updated: February 1998
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 /* Real -*- C++ -*- */
11 #ifndef __SND_aiff_H__
12 #define __SND_aiff_H__
21 class wxSndAiffCodec
: public wxSndFileCodec
{
23 DECLARE_DYNAMIC_CLASS(wxSndAiffCodec
)
28 wxSndAiffCodec(wxInputStream
& s
, bool preload
= FALSE
, bool seekable
= TRUE
);
30 wxSndAiffCodec(wxOutputStream
& s
, bool seekable
= TRUE
);
32 wxSndAiffCodec(const wxString
& fname
);
34 virtual ~wxSndAiffCodec();
36 virtual bool OnNeedData(char *buf
, wxUint32 size
);
37 virtual bool OnWriteData(char *buf
, wxUint32 size
);
39 virtual wxUint32
PrepareToPlay();
40 virtual bool PrepareToRecord(wxUint32 file_size
);
42 virtual void SetFile(wxInputStream
& s
, bool preload
= FALSE
,
43 bool seekable
= FALSE
);
44 virtual void SetFile(wxOutputStream
& s
,
45 bool seekable
= FALSE
);
51 void WriteSSND(wxUint32 file_size
);
54 wxUint32 m_spos
, m_slen
;