#include <VorbisLibEncoder.h>
Inheritance diagram for VorbisLibEncoder:
Definition at line 73 of file VorbisLibEncoder.h.
Public Member Functions | |
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 ) | |
Constructor. | |
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 ) | |
Constructor. | |
VorbisLibEncoder (const VorbisLibEncoder &encoder) throw ( Exception ) | |
Copy constructor. | |
virtual | ~VorbisLibEncoder (void) throw ( Exception ) |
Destructor. | |
virtual VorbisLibEncoder & | operator= (const VorbisLibEncoder &encoder) throw ( Exception ) |
Assignment operator. | |
unsigned int | getOutMaxBitrate (void) const throw () |
Get the maximum bit rate of the output in kbits/sec, for fixed / average bitrate encodings. | |
virtual bool | isRunning (void) const throw () |
Check wether encoding is in progress. | |
virtual bool | start (void) throw ( Exception ) |
Start encoding. | |
virtual void | stop (void) throw ( Exception ) |
Stop encoding. | |
virtual bool | open (void) throw ( Exception ) |
Open an encoding session. | |
virtual bool | isOpen (void) const throw () |
Check if the encoding session is open. | |
virtual bool | canWrite (unsigned int sec, unsigned int usec) throw ( Exception ) |
Check if the encoder is ready to accept data. | |
virtual unsigned int | write (const void *buf, unsigned int len) throw ( Exception ) |
Write data to the encoder. | |
virtual void | flush (void) throw ( Exception ) |
Flush all data that was written to the encoder to the underlying connection. | |
virtual void | close (void) throw ( Exception ) |
Close the encoding session. | |
Protected Member Functions | |
VorbisLibEncoder (void) throw ( Exception ) | |
Default constructor. |
|
Default constructor. Always throws an Exception.
Definition at line 166 of file VorbisLibEncoder.h. |
|
Constructor.
Definition at line 194 of file VorbisLibEncoder.h. |
|
Constructor.
Definition at line 238 of file VorbisLibEncoder.h. |
|
Copy constructor.
Definition at line 264 of file VorbisLibEncoder.h. |
|
Destructor.
Definition at line 280 of file VorbisLibEncoder.h. |
|
Check if the encoder is ready to accept data.
Implements Sink. Definition at line 388 of file VorbisLibEncoder.h. References isOpen(). |
|
Close the encoding session.
Implements Sink. Referenced by stop(), and ~VorbisLibEncoder(). |
|
Flush all data that was written to the encoder to the underlying connection.
Implements Sink. |
|
Get the maximum bit rate of the output in kbits/sec, for fixed / average bitrate encodings.
Definition at line 318 of file VorbisLibEncoder.h. |
|
Check if the encoding session is open.
Implements Sink. Definition at line 373 of file VorbisLibEncoder.h. Referenced by canWrite(), isRunning(), and ~VorbisLibEncoder(). |
|
Check wether encoding is in progress.
Implements AudioEncoder. Definition at line 329 of file VorbisLibEncoder.h. References isOpen(). |
|
Open an encoding session.
Implements Sink. Referenced by start(). |
|
Assignment operator.
Definition at line 296 of file VorbisLibEncoder.h. References AudioEncoder::operator=(). |
|
Start encoding. This function returns as soon as possible, with encoding started in the background.
Implements AudioEncoder. Definition at line 342 of file VorbisLibEncoder.h. References open(). |
|
Stop encoding. Stops the encoding running in the background.
Implements AudioEncoder. Definition at line 353 of file VorbisLibEncoder.h. References close(). |
|
Write data to the encoder. Buf is expected to be a sequence of big-endian 16 bit values, with left and right channels interleaved. Len is the number of bytes, must be a multiple of 4.
Implements Sink. |