CAccPolAudioStreamFormat Class Reference

class CAccPolAudioStreamFormat : public CAccPolObjectBase

Store's an audio stream format parameters.

.lib

Inherits from

Public Member Functions
~CAccPolAudioStreamFormat ()
IMPORT_C const TUid AudioFormat ()
IMPORT_C TBitResolution BitResolution ()
CAccPolObjectBase * DuplicateLC ( CAccPolObjectCon *)
void ExternalizeL ( RWriteStream &)
void InternalizeL ( 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 TUint32 SamFreq ()
IMPORT_C void SetAudioFormat (const TUid )
IMPORT_C void SetBitResolution (const TBitResolution )
IMPORT_C void SetSamFreq (const TUint32 )
IMPORT_C void SetStreamType (const TStreamType )
IMPORT_C void SetUnitId (const TUint8 )
IMPORT_C TStreamType StreamType ()
IMPORT_C TUint8 UnitId ()
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 )
void ConstructL ()
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
enum TBitResolution { EFormatNone  = 0, EFormatSpecificBitResolution , EBitsPerSample16 , EBitsPerSample24 , EBitsPerSample32 }
enum TStreamType { 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 TStreamConObjectType aObjectType,
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 TStreamConObjectType aObjectType,
const TUint8 aUnitId,
const TUid aAudioFormat,
const TStreamType aStreamType,
const TBitResolution aBitResolution,
const TUint32 aSamFreq
) [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 TUid AudioFormat ( ) const

Returns the audio format.

BitResolution()

IMPORT_C TBitResolution BitResolution ( ) const

Returns the bit resolution.

ConstructL()

void ConstructL ( ) [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 &)

void ExternalizeL ( RWriteStream & aStream ) const [virtual]

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [virtual]

Parameters

RReadStream & aStream

NewL(const TStreamConObjectType, CAccPolObjectCon *)

IMPORT_C CAccPolAudioStreamFormat * NewL ( const TStreamConObjectType aObjectType,
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 TStreamConObjectType aObjectType,
const TUint8 aUnitId,
const TUid aAudioFormat,
const TStreamType aStreamType,
const TBitResolution aBitResolution,
const TUint32 aSamFreq
) [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 TStreamConObjectType aObjectType,
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 TStreamConObjectType aObjectType,
const TUint8 aUnitId,
const TUid aAudioFormat,
const TStreamType aStreamType,
const TBitResolution aBitResolution,
const TUint32 aSamFreq
) [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 TUint32 SamFreq ( ) const

Returns the discrete sampling frequency.

SetAudioFormat(const TUid)

IMPORT_C void SetAudioFormat ( const TUid aAudioFormat )

Sets the audio format.

Parameters

const TUid aAudioFormat

SetBitResolution(const TBitResolution)

IMPORT_C void SetBitResolution ( const TBitResolution aBitResolution )

Sets the bit resolution.

Parameters

const TBitResolution aBitResolution

SetSamFreq(const TUint32)

IMPORT_C void SetSamFreq ( const TUint32 aSamFreq )

Sets the sampling frequency.

Parameters

const TUint32 aSamFreq

SetStreamType(const TStreamType)

IMPORT_C void SetStreamType ( const TStreamType aStreamType )

Sets the audio data stream type.

Parameters

const TStreamType aStreamType

SetUnitId(const TUint8)

IMPORT_C void SetUnitId ( const TUint8 aUnitId )

Sets the unit id.

Parameters

const TUint8 aUnitId

StreamType()

IMPORT_C TStreamType StreamType ( ) const

Returns the audio stream type.

UnitId()

IMPORT_C TUint8 UnitId ( ) 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.