CMMFChannelAndSampleRateConverter Class Reference

class CMMFChannelAndSampleRateConverter : public CBase

Base utility class to change the sample rate of audio data in a buffer

Inherits from

  • CMMFChannelAndSampleRateConverter

Member Functions Documentation

Convert(const CMMFDataBuffer &, CMMFDataBuffer &)

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

Parameters

const CMMFDataBuffer & aSrcBuffer A pointer to a source buffer containing the audio data to convert.
CMMFDataBuffer & aDstBuffer A pointer to a destination buffer.

MaxConvertBufferSize(TUint)

TUint MaxConvertBufferSize ( TUint aSrcBufferSize ) [inline, virtual]

Parameters

TUint aSrcBufferSize

Reset()

void Reset ( ) [inline, virtual]

SetRates(TInt, TInt, TInt, TInt)

void SetRates ( TInt aSrcRate,
TInt aSrcChannels,
TInt aDstRate,
TInt aDstChannels
)

Parameters

TInt aSrcRate
TInt aSrcChannels
TInt aDstRate
TInt aDstChannels

Member Data Documentation

TInt iFraction

TInt iFraction [protected]

TInt iFromChannels

TInt iFromChannels

TInt iFromRate

TInt iFromRate

TInt iIndex

TInt iIndex [protected]

TReal iRatio

TReal iRatio [protected]

TInt iToChannels

TInt iToChannels

TInt iToRate

TInt iToRate