• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/contrib/include/wx/mmedia/
1// --------------------------------------------------------------------------
2// Name: sndaiff.h
3// Purpose:
4// Date: 08/11/1999
5// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6// CVSID: $Id: sndaiff.h 35650 2005-09-23 12:56:45Z MR $
7// License:    wxWindows license
8// --------------------------------------------------------------------------
9#ifndef _WX_SNDAIFF_H
10#define _WX_SNDAIFF_H
11
12#include "wx/defs.h"
13#include "wx/stream.h"
14#include "wx/mmedia/defs.h"
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
23class WXDLLIMPEXP_MMEDIA wxSoundAiff: public wxSoundFileStream {
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
45