CAccPolAudioStreamFormat Class Reference

class CAccPolAudioStreamFormat : public CAccPolObjectBase

Store's an audio stream format parameters.

.lib

Inherits from

Public Member Functions
~CAccPolAudioStreamFormat()
IMPORT_C const TUidAudioFormat()
IMPORT_C TBitResolutionBitResolution()
CAccPolObjectBase *DuplicateLC(CAccPolObjectCon *)
voidExternalizeL(RWriteStream &)
voidInternalizeL(RReadStream &)
IMPORT_C CAccPolAudioStreamFormat *NewL(const TStreamConObjectType, CAccPolObjectCon *)
IMPORT_C CAccPolAudioStreamFormat *NewL(const TStreamConObjectType, const TUint8, const TUid, const TStreamType, const TBitResolution, const TUint32)
IMPORT_C CAccPolAudioStreamFormat *NewLC(const TStreamConObjectType, CAccPolObjectCon *)
IMPORT_C CAccPolAudioStreamFormat *NewLC(const TStreamConObjectType, const TUint8, const TUid, const TStreamType, const TBitResolution, const TUint32)
IMPORT_C TUint32SamFreq()
IMPORT_C voidSetAudioFormat(const TUid)
IMPORT_C voidSetBitResolution(const TBitResolution)
IMPORT_C voidSetSamFreq(const TUint32)
IMPORT_C voidSetStreamType(const TStreamType)
IMPORT_C voidSetUnitId(const TUint8)
IMPORT_C TStreamTypeStreamType()
IMPORT_C TUint8UnitId()
IMPORT_C CAccPolAudioStreamFormat &operator=(const CAccPolAudioStreamFormat &)
Protected Member Functions
CAccPolAudioStreamFormat(const TStreamConObjectType, CAccPolObjectCon *)
CAccPolAudioStreamFormat(const TStreamConObjectType, const TUint8, const TUid, const TStreamType, const TBitResolution, const TUint32)
voidConstructL()
Inherited Functions
CAccPolObjectBase::CAccPolObjectBase()
CAccPolObjectBase::CAccPolObjectBase(TUint8,CAccPolObjectCon *)
CAccPolObjectBase::ObjectType()const
CAccPolObjectBase::SetObjectType(TUint8)
CAccPolObjectBase::operator=(const CAccPolObjectBase &)
CAccPolObjectBase::~CAccPolObjectBase()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTBitResolution { EFormatNone = 0, EFormatSpecificBitResolution, EBitsPerSample16, EBitsPerSample24, EBitsPerSample32 }
enumTStreamType { EStreamNone = 0, EFormatSpecificStreamType, EMono, EStereo }
Private Attributes
TUid iAudioFormat
TBitResolution iBitResolution
TUint32 iSamFreq
TStreamType iStreamType
TUint8 iUnitId
Inherited Attributes
CAccPolObjectBase::iObjectContainer

Constructor & Destructor Documentation

CAccPolAudioStreamFormat(const TStreamConObjectType, CAccPolObjectCon *)

CAccPolAudioStreamFormat(const TStreamConObjectTypeaObjectType,
CAccPolObjectCon *aObject = NULL
)[protected]

C++ default constructor.

Parameters

const TStreamConObjectType aObjectType
CAccPolObjectCon * aObject = NULL

CAccPolAudioStreamFormat(const TStreamConObjectType, const TUint8, const TUid, const TStreamType, const TBitResolution, const TUint32)

CAccPolAudioStreamFormat(const TStreamConObjectTypeaObjectType,
const TUint8aUnitId,
const TUidaAudioFormat,
const TStreamTypeaStreamType,
const TBitResolutionaBitResolution,
const TUint32aSamFreq
)[protected]

C++ default constructor.

Parameters

const TStreamConObjectType aObjectType
const TUint8 aUnitId
const TUid aAudioFormat
const TStreamType aStreamType
const TBitResolution aBitResolution
const TUint32 aSamFreq

~CAccPolAudioStreamFormat()

~CAccPolAudioStreamFormat()[virtual]

Destructor.

Member Functions Documentation

AudioFormat()

IMPORT_C const TUidAudioFormat()const

Returns the audio format.

BitResolution()

IMPORT_C TBitResolutionBitResolution()const

Returns the bit resolution.

ConstructL()

voidConstructL()[protected]

By default Symbian 2nd phase constructor is private.

DuplicateLC(CAccPolObjectCon *)

CAccPolObjectBase *DuplicateLC(CAccPolObjectCon *aObject = NULL)[virtual]

Duplicates the object data.

Parameters

CAccPolObjectCon * aObject = NULL

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const [virtual]

Externalize object.

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[virtual]

Internalize object.

Parameters

RReadStream & aStream

NewL(const TStreamConObjectType, CAccPolObjectCon *)

IMPORT_C CAccPolAudioStreamFormat *NewL(const TStreamConObjectTypeaObjectType,
CAccPolObjectCon *aObject = NULL
)[static]

Two-phased constructor.

Parameters

const TStreamConObjectType aObjectType
CAccPolObjectCon * aObject = NULL

NewL(const TStreamConObjectType, const TUint8, const TUid, const TStreamType, const TBitResolution, const TUint32)

IMPORT_C CAccPolAudioStreamFormat *NewL(const TStreamConObjectTypeaObjectType,
const TUint8aUnitId,
const TUidaAudioFormat,
const TStreamTypeaStreamType,
const TBitResolutionaBitResolution,
const TUint32aSamFreq
)[static]

Two-phased constructor.

Parameters

const TStreamConObjectType aObjectType
const TUint8 aUnitId
const TUid aAudioFormat
const TStreamType aStreamType
const TBitResolution aBitResolution
const TUint32 aSamFreq

NewLC(const TStreamConObjectType, CAccPolObjectCon *)

IMPORT_C CAccPolAudioStreamFormat *NewLC(const TStreamConObjectTypeaObjectType,
CAccPolObjectCon *aObject = NULL
)[static]

Two-phased constructor.

Parameters

const TStreamConObjectType aObjectType
CAccPolObjectCon * aObject = NULL

NewLC(const TStreamConObjectType, const TUint8, const TUid, const TStreamType, const TBitResolution, const TUint32)

IMPORT_C CAccPolAudioStreamFormat *NewLC(const TStreamConObjectTypeaObjectType,
const TUint8aUnitId,
const TUidaAudioFormat,
const TStreamTypeaStreamType,
const TBitResolutionaBitResolution,
const TUint32aSamFreq
)[static]

Two-phased constructor.

Parameters

const TStreamConObjectType aObjectType
const TUint8 aUnitId
const TUid aAudioFormat
const TStreamType aStreamType
const TBitResolution aBitResolution
const TUint32 aSamFreq

SamFreq()

IMPORT_C TUint32SamFreq()const

Returns the discrete sampling frequency.

SetAudioFormat(const TUid)

IMPORT_C voidSetAudioFormat(const TUidaAudioFormat)

Sets the audio format.

Parameters

const TUid aAudioFormat

SetBitResolution(const TBitResolution)

IMPORT_C voidSetBitResolution(const TBitResolutionaBitResolution)

Sets the bit resolution.

Parameters

const TBitResolution aBitResolution

SetSamFreq(const TUint32)

IMPORT_C voidSetSamFreq(const TUint32aSamFreq)

Sets the sampling frequency.

Parameters

const TUint32 aSamFreq

SetStreamType(const TStreamType)

IMPORT_C voidSetStreamType(const TStreamTypeaStreamType)

Sets the audio data stream type.

Parameters

const TStreamType aStreamType

SetUnitId(const TUint8)

IMPORT_C voidSetUnitId(const TUint8aUnitId)

Sets the unit id.

Parameters

const TUint8 aUnitId

StreamType()

IMPORT_C TStreamTypeStreamType()const

Returns the audio stream type.

UnitId()

IMPORT_C TUint8UnitId()const

Returns the unit id.

operator=(const CAccPolAudioStreamFormat &)

IMPORT_C CAccPolAudioStreamFormat &operator=(const CAccPolAudioStreamFormat &)

Assign operator for audio stream format class.

Parameters

const CAccPolAudioStreamFormat &

Member Enumerations Documentation

Enum TBitResolution

Bit resolution.

Enumerators

EFormatNone = 0
EFormatSpecificBitResolution
EBitsPerSample16
EBitsPerSample24
EBitsPerSample32

Enum TStreamType

Stream type.

Enumerators

EStreamNone = 0
EFormatSpecificStreamType
EMono
EStereo

Member Data Documentation

TUid iAudioFormat

TUid iAudioFormat[private]

Audio format.

TBitResolution iBitResolution

TBitResolution iBitResolution[private]

Bit resolution.

TUint32 iSamFreq

TUint32 iSamFreq[private]

Sampling frequency / Hz.

TStreamType iStreamType

TStreamType iStreamType[private]

Channel type.

TUint8 iUnitId

TUint8 iUnitId[private]

Unit id.