Logo Search packages:      
Sourcecode: darkice version File versions

AudioEncoder Class Reference

#include <AudioEncoder.h>

Inheritance diagram for AudioEncoder:

Sink Referable Referable LameLibEncoder VorbisLibEncoder

List of all members.


Detailed Description

An audio encoder

Author:
Author
darkeye
Version:
Revision
1.8

Definition at line 58 of file AudioEncoder.h.


Public Types

enum  BitrateMode { cbr, abr, vbr }

Public Member Functions

virtual bool canWrite (unsigned int sec, unsigned int usec)=0 throw ( Exception )
virtual void close (void)=0 throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
virtual void flush (void)=0 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 ()
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 =0 throw ()
virtual bool isRunning (void) const =0 throw ()
virtual bool open (void)=0 throw ( Exception )
virtual bool start (void)=0 throw ( Exception )
virtual void stop (void)=0 throw ( Exception )
virtual unsigned int write (const void *buf, unsigned int len)=0 throw ( Exception )
virtual ~AudioEncoder (void) throw ( Exception )

Protected Member Functions

 AudioEncoder (const AudioEncoder &encoder) throw ( Exception )
 AudioEncoder (const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0) throw ( Exception)
 AudioEncoder (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) throw ( Exception )
 AudioEncoder (void) throw ( Exception )
virtual AudioEncoderoperator= (const AudioEncoder &encoder) throw ( Exception )

Private Member Functions

void init (unsigned int inSampleRate, unsigned int inBitsPerSample, unsigned int inChannel, bool inBigEndian, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate, unsigned int outChannel) throw ( Exception )
void strip (void) throw ( Exception )

Private Attributes

bool inBigEndian
unsigned int inBitsPerSample
unsigned int inChannel
unsigned int inSampleRate
unsigned int outBitrate
BitrateMode outBitrateMode
unsigned int outChannel
double outQuality
unsigned int outSampleRate

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

Generated by  Doxygen 1.6.0   Back to index