Logo Search packages:      
Sourcecode: darkice version File versions

VorbisLibEncoder Class Reference

#include <VorbisLibEncoder.h>

Inheritance diagram for VorbisLibEncoder:

AudioEncoder Reporter Sink Referable Referable

List of all members.


Detailed Description

A class representing the ogg vorbis encoder linked as a shared object or as a static library.

Author:
Author
darkeye
Version:
Revision
1.9

Definition at line 73 of file VorbisLibEncoder.h.


Public Types

enum  BitrateMode { cbr, abr, vbr }

Public Member Functions

virtual bool canWrite (unsigned int sec, unsigned int usec) throw ( Exception )
virtual void close (void) throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
virtual void flush (void) throw ( Exception )
int getInBitsPerSample (void) const throw ()
int getInChannel (void) const throw ()
int getInSampleRate (void) const throw ()
unsigned int getOutBitrate (void) const throw ()
BitrateMode getOutBitrateMode (void) const throw ()
int getOutChannel (void) const throw ()
unsigned int getOutMaxBitrate (void) const throw ()
double getOutQuality (void) const throw ()
int getOutSampleRate (void) const throw ()
unsigned int getReferenceCount (void) const throw ()
unsigned int getReferenceCount (void) const throw ()
unsigned int increaseReferenceCount (void) throw ( Exception )
unsigned int increaseReferenceCount (void) throw ( Exception )
bool isInBigEndian (void) const throw ()
virtual bool isOpen (void) const throw ()
virtual bool isRunning (void) const throw ()
virtual bool open (void) throw ( Exception )
virtual VorbisLibEncoderoperator= (const VorbisLibEncoder &encoder) throw ( Exception )
virtual bool start (void) throw ( Exception )
virtual void stop (void) throw ( Exception )
 VorbisLibEncoder (const VorbisLibEncoder &encoder) throw ( Exception )
 VorbisLibEncoder (CastSink *sink, const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0, unsigned int outMaxBitrate=0) throw ( Exception )
 VorbisLibEncoder (CastSink *sink, unsigned int inSampleRate, unsigned int inBitsPerSample, unsigned int inChannel, bool inBigEndian, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0, unsigned int outMaxBitrate=0) throw ( Exception )
virtual unsigned int write (const void *buf, unsigned int len) throw ( Exception )
virtual ~VorbisLibEncoder (void) throw ( Exception )

Static Public Member Functions

static std::ostream & getReportOutputStream (void) throw ()
static unsigned int getReportVerbosity (void) throw ()
template<class T, class U, class V, class W>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v, const W w) throw ()
template<class T, class U, class V>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v) throw ()
template<class T, class U>
static void reportEvent (unsigned int verbosity, const T t, const U u) throw ()
template<class T>
static void reportEvent (unsigned int verbosity, const T t) throw ()
static void setReportOutputStream (std::ostream &os) throw ()
static void setReportVerbosity (unsigned int verbosity) throw ()

Protected Member Functions

 VorbisLibEncoder (void) throw ( Exception )

Private Member Functions

void init (CastSink *sink, unsigned int outMaxBitrate) throw ( Exception )
void strip (void) throw ( Exception )
void vorbisBlocksOut (void) throw ( Exception )

Private Attributes

aflibConverterconverter
bool encoderOpen
ogg_stream_state oggStreamState
unsigned int outMaxBitrate
double resampleRatio
Ref< CastSinksink
vorbis_block vorbisBlock
vorbis_comment vorbisComment
vorbis_dsp_state vorbisDspState
vorbis_info vorbisInfo

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index