]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/sndwav.h
1 // /////////////////////////////////////////////////////////////////////////////
4 // Author: Guilhem Lavaux
6 // Updated: February 1998
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 /* Real -*- C++ -*- */
21 class wxSndWavCodec
: public wxSndFileCodec
{
23 DECLARE_DYNAMIC_CLASS(wxSndWavCodec
)
28 wxSndWavCodec(wxInputStream
& s
, bool preload
= FALSE
, bool seekable
= TRUE
);
30 wxSndWavCodec(wxOutputStream
& s
, bool seekable
= TRUE
);
32 wxSndWavCodec(const wxString
& fname
);
34 virtual ~wxSndWavCodec();
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
);
48 wxRiffCodec riff_codec
;