#include <AacEncoder.h>
Inheritance diagram for AacEncoder:
Definition at line 71 of file AacEncoder.h.
Public Member Functions | |
AacEncoder (Sink *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) throw ( Exception ) | |
Constructor. | |
AacEncoder (Sink *sink, const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0) throw ( Exception ) | |
Constructor. | |
AacEncoder (const AacEncoder &encoder) throw ( Exception ) | |
Copy constructor. | |
virtual | ~AacEncoder (void) throw ( Exception ) |
Destructor. | |
virtual AacEncoder & | operator= (const AacEncoder &encoder) throw ( Exception ) |
Assignment operator. | |
const char * | getFaacVersion (void) |
Get the version string of the underlying faac library. | |
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 | |
AacEncoder (void) throw ( Exception ) | |
Default constructor. |
|
Default constructor. Always throws an Exception.
Definition at line 152 of file AacEncoder.h. |
|
Constructor.
Definition at line 178 of file AacEncoder.h. |
|
Constructor.
Definition at line 219 of file AacEncoder.h. |
|
Copy constructor.
Definition at line 244 of file AacEncoder.h. |
|
Destructor.
Definition at line 258 of file AacEncoder.h. |
|
Check if the encoder is ready to accept data.
Implements Sink. Definition at line 365 of file AacEncoder.h. References isOpen(). |
|
Close the encoding session.
Implements Sink. Referenced by stop(), and ~AacEncoder(). |
|
Flush all data that was written to the encoder to the underlying connection.
Implements Sink. |
|
Get the version string of the underlying faac library.
Definition at line 291 of file AacEncoder.h. |
|
Check if the encoding session is open.
Implements Sink. Definition at line 350 of file AacEncoder.h. Referenced by canWrite(), isRunning(), and ~AacEncoder(). |
|
Check wether encoding is in progress.
Implements AudioEncoder. Definition at line 306 of file AacEncoder.h. References isOpen(). |
|
Open an encoding session.
Implements Sink. Referenced by start(). |
|
Assignment operator.
Definition at line 274 of file AacEncoder.h. References AudioEncoder::operator=(). |
|
Start encoding. This function returns as soon as possible, with encoding started in the background.
Implements AudioEncoder. Definition at line 319 of file AacEncoder.h. References open(). |
|
Stop encoding. Stops the encoding running in the background.
Implements AudioEncoder. Definition at line 330 of file AacEncoder.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. |