4d6306eb4d
* WARNING! It is quite unstable on Windows and it doesn't work on Linux for the moment because I didn't finish fixing the CODEC stream. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
// /////////////////////////////////////////////////////////////////////////////
|
|
// Name: sndau.h
|
|
// Purpose: wxMMedia Sun Audio File Codec
|
|
// Author: Guilhem Lavaux
|
|
// Created: 1998
|
|
// Updated:
|
|
// Copyright: (C) 1998, Guilhem Lavaux
|
|
// License: wxWindows license
|
|
// /////////////////////////////////////////////////////////////////////////////
|
|
/* Real -*- C++ -*- */
|
|
#ifndef __SND_au_H__
|
|
#define __SND_au_H__
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "mmriff.h"
|
|
#include "sndfile.h"
|
|
|
|
///
|
|
class wxSndAuCodec : public wxSndFileCodec {
|
|
///
|
|
DECLARE_DYNAMIC_CLASS(wxSndAuCodec)
|
|
public:
|
|
///
|
|
wxSndAuCodec();
|
|
///
|
|
wxSndAuCodec(wxInputStream& s, bool preload = FALSE, bool seekable = TRUE);
|
|
///
|
|
wxSndAuCodec(wxOutputStream& s, bool seekable = TRUE);
|
|
///
|
|
wxSndAuCodec(const wxString& fname);
|
|
///
|
|
virtual ~wxSndAuCodec();
|
|
|
|
bool OnNeedData(char *buf, wxUint32 size);
|
|
bool OnWriteData(char *buf, wxUint32 size);
|
|
|
|
wxUint32 PrepareToPlay();
|
|
bool PrepareToRecord(wxUint32 file_size);
|
|
|
|
protected:
|
|
wxUint32 m_spos, m_slen;
|
|
wxUint32 m_chunksize;
|
|
};
|
|
|
|
#endif
|