#include <FaacEncoder.h>
Inheritance diagram for FaacEncoder:


Definition at line 71 of file FaacEncoder.h.
Public Member Functions | |
| FaacEncoder (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, int lowpass=0) throw ( Exception ) | |
| Constructor. | |
| FaacEncoder (Sink *sink, const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0, int lowpass=0) throw ( Exception ) | |
| Constructor. | |
| FaacEncoder (const FaacEncoder &encoder) throw ( Exception ) | |
| Copy constructor. | |
| virtual | ~FaacEncoder (void) throw ( Exception ) |
| Destructor. | |
| virtual FaacEncoder & | operator= (const FaacEncoder &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 | |
| FaacEncoder (void) throw ( Exception ) | |
| Default constructor. | |
|
|
Default constructor. Always throws an Exception.
Definition at line 165 of file FaacEncoder.h. |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 195 of file FaacEncoder.h. |
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 241 of file FaacEncoder.h. |
|
|
Copy constructor.
Definition at line 267 of file FaacEncoder.h. |
|
|
Destructor.
Definition at line 281 of file FaacEncoder.h. |
|
||||||||||||
|
Check if the encoder is ready to accept data.
Implements Sink. Definition at line 388 of file FaacEncoder.h. References isOpen(). |
|
|
Close the encoding session.
Implements Sink. Referenced by stop(), and ~FaacEncoder(). |
|
|
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 314 of file FaacEncoder.h. |
|
|
Check if the encoding session is open.
Implements Sink. Definition at line 373 of file FaacEncoder.h. Referenced by canWrite(), isRunning(), and ~FaacEncoder(). |
|
|
Check wether encoding is in progress.
Implements AudioEncoder. Definition at line 329 of file FaacEncoder.h. References isOpen(). |
|
|
Open an encoding session.
Implements Sink. Referenced by start(). |
|
|
Assignment operator.
Definition at line 297 of file FaacEncoder.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 FaacEncoder.h. References open(). |
|
|
Stop encoding. Stops the encoding running in the background.
Implements AudioEncoder. Definition at line 353 of file FaacEncoder.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. |
1.4.4