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


Definition at line 72 of file LameLibEncoder.h.
Public Member Functions | |
| LameLibEncoder (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, int highpass=0) throw ( Exception ) | |
| Constructor. | |
| LameLibEncoder (Sink *sink, const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0, int lowpass=0, int highpass=0) throw ( Exception ) | |
| Constructor. | |
| LameLibEncoder (const LameLibEncoder &encoder) throw ( Exception ) | |
| Copy constructor. | |
| virtual | ~LameLibEncoder (void) throw ( Exception ) |
| Destructor. | |
| virtual LameLibEncoder & | operator= (const LameLibEncoder &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 | |
| LameLibEncoder (void) throw ( Exception ) | |
| Default constructor. | |
|
|
Default constructor. Always throws an Exception.
Definition at line 164 of file LameLibEncoder.h. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 198 of file LameLibEncoder.h. |
|
||||||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 249 of file LameLibEncoder.h. |
|
|
Copy constructor.
Definition at line 276 of file LameLibEncoder.h. |
|
|
Destructor.
Definition at line 290 of file LameLibEncoder.h. |
|
||||||||||||
|
Check if the encoder is ready to accept data.
Implements Sink. Definition at line 393 of file LameLibEncoder.h. References isOpen(). |
|
|
Close the encoding session.
Implements Sink. Referenced by stop(), and ~LameLibEncoder(). |
|
|
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 323 of file LameLibEncoder.h. |
|
|
Check if the encoding session is open.
Implements Sink. Definition at line 378 of file LameLibEncoder.h. Referenced by canWrite(), isRunning(), and ~LameLibEncoder(). |
|
|
Check wether encoding is in progress.
Implements AudioEncoder. Definition at line 334 of file LameLibEncoder.h. References isOpen(). |
|
|
Open an encoding session.
Implements Sink. Referenced by start(). |
|
|
Assignment operator.
Definition at line 306 of file LameLibEncoder.h. References AudioEncoder::operator=(). |
|
|
Start encoding. This function returns as soon as possible, with encoding started in the background.
Implements AudioEncoder. Definition at line 347 of file LameLibEncoder.h. References open(). |
|
|
Stop encoding. Stops the encoding running in the background.
Implements AudioEncoder. Definition at line 358 of file LameLibEncoder.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