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 & aSrcBufferA pointer to a source buffer containing the audio data to convert.
CMMFDataBuffer & aDstBufferA pointer to a destination buffer.

MaxConvertBufferSize(TUint)

TUint MaxConvertBufferSize(TUintaSrcBufferSize)[inline, virtual]

Parameters

TUint aSrcBufferSize

Reset()

voidReset()[inline, virtual]

SetRates(TInt, TInt, TInt, TInt)

voidSetRates(TIntaSrcRate,
TIntaSrcChannels,
TIntaDstRate,
TIntaDstChannels
)

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