|
RTP Audio System
2.0.0
|
Functions | |
| cardinal | getAlignedLength (const AudioQualityInterface &inputQuality, const AudioQualityInterface &outputQuality, const cardinal inputLength) |
| bool | getConvParams (const cardinal in, const cardinal out, cardinal &a, cardinal &b, float &c) |
| void | get12 (const card8 *buffer, card16 &a, card16 &b) |
| void | set12 (card8 *buffer, const card16 c, const card16 d) |
| cardinal | AudioConverter (const AudioQualityInterface &from, const AudioQualityInterface &to, const card8 *inputBuffer, card8 *outputBuffer, const cardinal inputLength, const cardinal outputLength) |
| cardinal AudioConverter | ( | const AudioQualityInterface & | from, |
| const AudioQualityInterface & | to, | ||
| const card8 * | inputBuffer, | ||
| card8 * | outputBuffer, | ||
| const cardinal | inputLength, | ||
| const cardinal | outputLength | ||
| ) |
Audio quality converter. Convert quality from a given value to a given value. Note: The "from" value must be greater than or equal to the "to" value, that is from-sampling rate >= to-sampling rate, from-bits >= to-bits, from-channels >= to-channels.
| from | Quality to convert from. |
| to | Quality to convert to. |
| inputBuffer | Input buffer. |
| outputBuffer | Output buffer. |
| inputLength | Length of the audio data in input buffer. |
| outputLength | Length of the output buffer. |
| cardinal getAlignedLength | ( | const AudioQualityInterface & | inputQuality, |
| const AudioQualityInterface & | outputQuality, | ||
| const cardinal | inputLength | ||
| ) |
Get aligned output length for a conversion from given input quality and input length to output quality. Example: 12 Bit/Stereo has a 6-byte alignment: L1L1R1R2 = 48 bits = 6 Bytes.
| inputQuality | Input quality. |
| outputQuality | Output quality. |
| inputLength | Input length. |
| bool getConvParams | ( | const cardinal | in, |
| const cardinal | out, | ||
| cardinal & | a, | ||
| cardinal & | b, | ||
| float & | c | ||
| ) |
Get parameters for audio conversion. New sampling rate = (a * OldSamplingRate) / b;
| in | Old sampling rate. |
| out | New sampling rate. |
| a | Reference to store a. |
| b | Reference to store b. |
| c | Reference to store float in / out. |