2000-03-05 14:03:21 -05:00
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// Name: sndaiff.h
|
|
|
|
// Purpose:
|
|
|
|
// Date: 08/11/1999
|
|
|
|
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
|
|
|
// CVSID: $Id$
|
2004-11-22 15:05:26 -05:00
|
|
|
// License: wxWindows license
|
2000-03-05 14:03:21 -05:00
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
#ifndef _WX_SNDAIFF_H
|
|
|
|
#define _WX_SNDAIFF_H
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/stream.h"
|
2003-08-03 13:11:53 -04:00
|
|
|
#include "wx/mmedia/defs.h"
|
2000-03-05 14:03:21 -05:00
|
|
|
#include "wx/mmedia/sndbase.h"
|
|
|
|
#include "wx/mmedia/sndcodec.h"
|
|
|
|
#include "wx/mmedia/sndfile.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// AIFF codec
|
|
|
|
//
|
|
|
|
|
2003-08-03 13:11:53 -04:00
|
|
|
class WXDLLIMPEXP_MMEDIA wxSoundAiff: public wxSoundFileStream {
|
2000-03-05 14:03:21 -05:00
|
|
|
public:
|
|
|
|
wxSoundAiff(wxInputStream& stream, wxSoundStream& io_sound);
|
|
|
|
wxSoundAiff(wxOutputStream& stream, wxSoundStream& io_sound);
|
|
|
|
~wxSoundAiff();
|
|
|
|
|
|
|
|
bool CanRead();
|
|
|
|
wxString GetCodecName() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool PrepareToPlay();
|
|
|
|
bool PrepareToRecord(wxUint32 time);
|
|
|
|
bool FinishRecording();
|
|
|
|
bool RepositionStream(wxUint32 position);
|
|
|
|
|
|
|
|
wxUint32 GetData(void *buffer, wxUint32 len);
|
|
|
|
wxUint32 PutData(const void *buffer, wxUint32 len);
|
|
|
|
protected:
|
|
|
|
off_t m_base_offset;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|