]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/sndau.h
fixed somebody's poorly done StreamSize-->GetSize transition
[wxWidgets.git] / utils / wxMMedia / sndau.h
1 // /////////////////////////////////////////////////////////////////////////////
2 // Name: sndau.h
3 // Purpose: wxMMedia Sun Audio File Codec
4 // Author: Guilhem Lavaux
5 // Created: 1998
6 // Updated:
7 // Copyright: (C) 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 /* Real -*- C++ -*- */
11 #ifndef __SND_au_H__
12 #define __SND_au_H__
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "mmriff.h"
18 #include "sndfile.h"
19
20 ///
21 class wxSndAuCodec : public wxSndFileCodec {
22 ///
23 DECLARE_DYNAMIC_CLASS(wxSndAuCodec)
24 public:
25 ///
26 wxSndAuCodec();
27 ///
28 wxSndAuCodec(wxInputStream& s, bool preload = FALSE, bool seekable = TRUE);
29 ///
30 wxSndAuCodec(wxOutputStream& s, bool seekable = TRUE);
31 ///
32 wxSndAuCodec(const wxString& fname);
33 ///
34 virtual ~wxSndAuCodec();
35
36 bool OnNeedData(char *buf, wxUint32 size);
37 bool OnWriteData(char *buf, wxUint32 size);
38
39 wxUint32 PrepareToPlay();
40 bool PrepareToRecord(wxUint32 file_size);
41
42 protected:
43 wxUint32 m_spos, m_slen;
44 wxUint32 m_chunksize;
45 };
46
47 #endif