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


Definition at line 58 of file AudioEncoder.h.
Public Types | |
| enum | BitrateMode { cbr, abr, vbr } |
| Type to specify bitrate mode. More... | |
Public Member Functions | |
| virtual | ~AudioEncoder (void) throw ( Exception ) |
| Destructor. | |
| int | getInChannel (void) const throw () |
| Get the number of channels of the input. | |
| bool | isInBigEndian (void) const throw () |
| Tell if the input is big or little endian. | |
| int | getInSampleRate (void) const throw () |
| Get the sample rate of the input. | |
| int | getInBitsPerSample (void) const throw () |
| Get the number of bits per sample of the input. | |
| int | getOutChannel (void) const throw () |
| Get the number of channels of the output. | |
| int | getOutSampleRate (void) const throw () |
| Get the sample rate of the output. | |
| BitrateMode | getOutBitrateMode (void) const throw () |
| Get the bit rate mode of the output. | |
| unsigned int | getOutBitrate (void) const throw () |
| Get the bit rate of the output in kbits/sec, for fixed bitrate encodings. | |
| double | getOutQuality (void) const throw () |
| Get the encoding quality of the output, for variable bitrate encodings. | |
| virtual bool | isRunning (void) const =0 throw () |
| Check wether encoding is in progress. | |
| virtual bool | start (void)=0 throw ( Exception ) |
| Start encoding. | |
| virtual void | stop (void)=0 throw ( Exception ) |
| Stop encoding. | |
Protected Member Functions | |
| AudioEncoder (void) throw ( Exception ) | |
| Default constructor. | |
| AudioEncoder (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. | |
| AudioEncoder (const AudioSource *as, BitrateMode outBitrateMode, unsigned int outBitrate, double outQuality, unsigned int outSampleRate=0, unsigned int outChannel=0) throw ( Exception) | |
| Constructor. | |
| AudioEncoder (const AudioEncoder &encoder) throw ( Exception ) | |
| Copy constructor. | |
| virtual AudioEncoder & | operator= (const AudioEncoder &encoder) throw ( Exception ) |
| Assignment operator. | |
|
|
Type to specify bitrate mode. Possible values:
Definition at line 70 of file AudioEncoder.h. |
|
|
Default constructor. Always throws an Exception.
Definition at line 177 of file AudioEncoder.h. |
|
||||||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 199 of file AudioEncoder.h. |
|
||||||||||||||||||||||||||||
|
Constructor.
Definition at line 236 of file AudioEncoder.h. References AudioSource::getBitsPerSample(), AudioSource::getChannel(), AudioSource::getSampleRate(), and AudioSource::isBigEndian(). |
|
|
Copy constructor.
Definition at line 261 of file AudioEncoder.h. |
|
|
Destructor.
Definition at line 310 of file AudioEncoder.h. |
|
|
Get the number of bits per sample of the input.
Definition at line 354 of file AudioEncoder.h. |
|
|
Get the number of channels of the input.
Definition at line 321 of file AudioEncoder.h. |
|
|
Get the sample rate of the input.
Definition at line 343 of file AudioEncoder.h. |
|
|
Get the bit rate of the output in kbits/sec, for fixed bitrate encodings.
Definition at line 399 of file AudioEncoder.h. |
|
|
Get the bit rate mode of the output.
Definition at line 387 of file AudioEncoder.h. |
|
|
Get the number of channels of the output.
Definition at line 365 of file AudioEncoder.h. |
|
|
Get the encoding quality of the output, for variable bitrate encodings.
Definition at line 411 of file AudioEncoder.h. |
|
|
Get the sample rate of the output.
Definition at line 376 of file AudioEncoder.h. |
|
|
Tell if the input is big or little endian.
Definition at line 332 of file AudioEncoder.h. |
|
|
Check wether encoding is in progress.
Implemented in FaacEncoder, LameLibEncoder, TwoLameLibEncoder, and VorbisLibEncoder. |
|
|
Assignment operator.
Definition at line 282 of file AudioEncoder.h. Referenced by VorbisLibEncoder::operator=(), TwoLameLibEncoder::operator=(), LameLibEncoder::operator=(), and FaacEncoder::operator=(). |
|
|
Start encoding. This function returns as soon as possible, with encoding started in the background.
Implemented in FaacEncoder, LameLibEncoder, TwoLameLibEncoder, and VorbisLibEncoder. |
|
|
Stop encoding. Stops the encoding running in the background.
Implemented in FaacEncoder, LameLibEncoder, TwoLameLibEncoder, and VorbisLibEncoder. |
1.4.4