CChannelAndSampleRateConverter Class Reference

class CChannelAndSampleRateConverter : public CBase

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

Inherits from

  • CChannelAndSampleRateConverter

Constructor & Destructor Documentation

CChannelAndSampleRateConverter()

CChannelAndSampleRateConverter ( ) [protected]

Member Functions Documentation

Convert(const TDesC8 &, TDes8 &)

TInt Convert ( const TDesC8 & aSrcBuffer,
TDes8 & 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 TDesC8 & aSrcBuffer The source buffer containing the audio data to convert.
TDes8 & aDstBuffer The destination buffer - assumed big enough

CreateL(TInt, TInt, TInt, TInt)

IMPORT_C CChannelAndSampleRateConverter * CreateL ( TInt aFromRate,
TInt aFromChannels,
TInt aToRate,
TInt aToChannels
) [static]

Parameters

TInt aFromRate
TInt aFromChannels
TInt aToRate
TInt aToChannels

MaxConvertBufferSize(TInt, TBool)

TInt MaxConvertBufferSize ( TInt aSrcBufferSize,
TBool aRoundUpToPower = EFalse
) [pure virtual]

Parameters

TInt aSrcBufferSize
TBool aRoundUpToPower = EFalse

Reset()

void Reset ( ) [pure virtual]