]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/sndau.h
1 // /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMMedia Sun Audio File Codec
4 // Author: Guilhem Lavaux
7 // Copyright: (C) 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 /* Real -*- C++ -*- */
21 class wxSndAuCodec
: public wxSndFileCodec
{
23 DECLARE_DYNAMIC_CLASS(wxSndAuCodec
)
28 wxSndAuCodec(wxInputStream
& s
, bool preload
= FALSE
, bool seekable
= TRUE
);
30 wxSndAuCodec(wxOutputStream
& s
, bool seekable
= TRUE
);
32 wxSndAuCodec(const wxString
& fname
);
34 virtual ~wxSndAuCodec();
36 bool OnNeedData(char *buf
, wxUint32 size
);
37 bool OnWriteData(char *buf
, wxUint32 size
);
39 wxUint32
PrepareToPlay();
40 bool PrepareToRecord(wxUint32 file_size
);
43 wxUint32 m_spos
, m_slen
;