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


Definition at line 72 of file TwoLameLibEncoder.h.
Public Member Functions | |
| TwoLameLibEncoder (Sink *sink, unsigned int inSampleRate, unsigned int inBitsPerSample, unsigned int inChannel, bool inBigEndian, BitrateMode outBitrateMode, unsigned int outBitrate, unsigned int outSampleRate=0, unsigned int outChannel=0) throw ( Exception ) | |
| Constructor. | |
| TwoLameLibEncoder (Sink *sink, const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, unsigned int outSampleRate=0, unsigned int outChannel=0) throw ( Exception ) | |
| Constructor. | |
| TwoLameLibEncoder (const TwoLameLibEncoder &encoder) throw ( Exception ) | |
| Copy constructor. | |
| virtual | ~TwoLameLibEncoder (void) throw ( Exception ) |
| Destructor. | |
| virtual TwoLameLibEncoder & | operator= (const TwoLameLibEncoder &encoder) throw ( Exception ) |
| Assignment operator. | |
| const char * | getLameVersion (void) |
| Get the version string of the underlying lame 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 | |
| TwoLameLibEncoder (void) throw ( Exception ) | |
| Default constructor. | |
|
|
Default constructor. Always throws an Exception.
Definition at line 114 of file TwoLameLibEncoder.h. |
|
||||||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 139 of file TwoLameLibEncoder.h. |
|
||||||||||||||||||||||||||||
|
Constructor.
Definition at line 178 of file TwoLameLibEncoder.h. |
|
|
Copy constructor.
Definition at line 202 of file TwoLameLibEncoder.h. |
|
|
Destructor.
Definition at line 216 of file TwoLameLibEncoder.h. |
|
||||||||||||
|
Check if the encoder is ready to accept data.
Implements Sink. Definition at line 319 of file TwoLameLibEncoder.h. References isOpen(). |
|
|
Close the encoding session.
Implements Sink. Referenced by stop(), and ~TwoLameLibEncoder(). |
|
|
Flush all data that was written to the encoder to the underlying connection.
Implements Sink. |
|
|
Get the version string of the underlying lame library.
Definition at line 249 of file TwoLameLibEncoder.h. |
|
|
Check if the encoding session is open.
Implements Sink. Definition at line 304 of file TwoLameLibEncoder.h. Referenced by canWrite(), isRunning(), and ~TwoLameLibEncoder(). |
|
|
Check wether encoding is in progress.
Implements AudioEncoder. Definition at line 260 of file TwoLameLibEncoder.h. References isOpen(). |
|
|
Open an encoding session.
Implements Sink. Referenced by start(). |
|
|
Assignment operator.
Definition at line 232 of file TwoLameLibEncoder.h. References AudioEncoder::operator=(). |
|
|
Start encoding. This function returns as soon as possible, with encoding started in the background.
Implements AudioEncoder. Definition at line 273 of file TwoLameLibEncoder.h. References open(). |
|
|
Stop encoding. Stops the encoding running in the background.
Implements AudioEncoder. Definition at line 284 of file TwoLameLibEncoder.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