class CMMFChannelAndSampleRateConverter : public CBase |
Base utility class to change the sample rate of audio data in a buffer
Public Member Functions | |
---|---|
TInt | Convert(const CMMFDataBuffer &, CMMFDataBuffer &) |
TUint | MaxConvertBufferSize(TUint) |
void | Reset() |
void | SetRates(TInt, TInt, TInt, TInt) |
Public Attributes | |
---|---|
TInt | iFromChannels |
TInt | iFromRate |
TInt | iToChannels |
TInt | iToRate |
Protected Attributes | |
---|---|
TInt | iFraction |
TInt | iIndex |
TReal | iRatio |
TInt | Convert | ( | const CMMFDataBuffer & | aSrcBuffer, |
CMMFDataBuffer & | aDstBuffer | |||
) | [pure virtual] |
Reads the audio data from the source buffer, converts the number of channels and the sample rate and copies the result to the destination buffer
The length of the destination buffer.
const CMMFDataBuffer & aSrcBuffer | A pointer to a source buffer containing the audio data to convert. |
CMMFDataBuffer & aDstBuffer | A pointer to a destination buffer. |
TUint | MaxConvertBufferSize | ( | TUint | aSrcBufferSize | ) | [inline, virtual] |
TUint aSrcBufferSize |
void | SetRates | ( | TInt | aSrcRate, |
TInt | aSrcChannels, | |||
TInt | aDstRate, | |||
TInt | aDstChannels | |||
) |