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 & aSrcBufferThe source buffer containing the audio data to convert.
TDes8 & aDstBufferThe destination buffer - assumed big enough

CreateL(TInt, TInt, TInt, TInt)

IMPORT_C CChannelAndSampleRateConverter *CreateL(TIntaFromRate,
TIntaFromChannels,
TIntaToRate,
TIntaToChannels
)[static]

Parameters

TInt aFromRate
TInt aFromChannels
TInt aToRate
TInt aToChannels

MaxConvertBufferSize(TInt, TBool)

TInt MaxConvertBufferSize(TIntaSrcBufferSize,
TBoolaRoundUpToPower = EFalse
)[pure virtual]

Parameters

TInt aSrcBufferSize
TBool aRoundUpToPower = EFalse

Reset()

voidReset()[pure virtual]