CMceAudioStream Class Reference

class CMceAudioStream : public CMceMediaStream

Class for representing unidirectional audio stream.

It defines the used audio codecs for the stream. In order to be complete structure, at least one codec is required.

mceclient.lib

Inherits from

Public Member Functions
~CMceAudioStream()
IMPORT_C voidAddCodecL(CMceAudioCodec *)
const RPointerArray< CMceCodec > &BaseCodecs()
IMPORT_C const RPointerArray< CMceAudioCodec > &Codecs()
TInt EventReceivedL(TMceEvent &)
voidExternalizeL(MMceComSerializationContext &)
CMceCodec *FindCodec(CMceCodec &)
voidFindDtmfRelatedComponents(TBool &, TBool &, TBool &, TBool)
voidInitializeL(CMceSession &, TBool)
voidInitializeL(CMceManager *, CMceSession &)
voidInternalizeL(MMceComSerializationContext &)
IMPORT_C CMceAudioStream *NewL()
IMPORT_C CMceAudioStream *NewLC()
IMPORT_C voidRemoveCodecL(CMceAudioCodec &)
voidRemoveCodecL(CMceAudioCodec &, TBool)
voidReorderCodecsByPreferenceL(TBool)
IMPORT_C voidReplaceCodecsL(RPointerArray< CMceAudioCodec > *)
voidSynchronizeWithFileL(CMceFileSource &)
Private Member Functions
CMceAudioStream()
voidConstructL()
Inherited Functions
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()
CMceMediaStream::AddSinkL(CMceMediaSink *)
CMceMediaStream::AddSinkL(MMceComSerializationContext &)
CMceMediaStream::AddedL()
CMceMediaStream::BaseFactory()const
CMceMediaStream::BindL(CMceMediaStream *)
CMceMediaStream::Binder()const
CMceMediaStream::Bound()const
CMceMediaStream::BoundStream()const
CMceMediaStream::BoundStreamL()const
CMceMediaStream::CMceMediaStream()
CMceMediaStream::ConstructL(CMceComMediaStream *)
CMceMediaStream::DisableL()
CMceMediaStream::EnableL()
CMceMediaStream::ExternalizeFlatL(RWriteStream &)
CMceMediaStream::Factory()
CMceMediaStream::FindCodec(const RPointerArray< CMceCodec > &,CMceCodec &)
CMceMediaStream::FlatData()
CMceMediaStream::HandleMediaError(TState,TBool,TInt)
CMceMediaStream::Id()const
CMceMediaStream::InternalizeFlatL(RReadStream &)
CMceMediaStream::IsEnabled()const
CMceMediaStream::LocalMediaPort()const
CMceMediaStream::MediaAttributeLinesL()
CMceMediaStream::RemoveSinkL(CMceMediaSink &)
CMceMediaStream::SerializationId()const
CMceMediaStream::Session()const
CMceMediaStream::SetLocalMediaPortL(TUint)
CMceMediaStream::SetMediaAttributeLinesL(CDesC8Array *)
CMceMediaStream::SetSourceL(CMceMediaSource *)
CMceMediaStream::SetSourceL(MMceComSerializationContext &)
CMceMediaStream::SetState(TState)
CMceMediaStream::Sinks()const
CMceMediaStream::Source()const
CMceMediaStream::State()const
CMceMediaStream::Type()const
CMceMediaStream::Updated()
CMceMediaStream::~CMceMediaStream()
Inherited Enumerations
CMceMediaStream:TState
Private Attributes
RPointerArray< CMceAudioCodec >iCodecs
Inherited Attributes
CMceMediaStream::iFlatData
CMceMediaStream::iLinkedStream
CMceMediaStream::iSession
CMceMediaStream::iSinks
CMceMediaStream::iSource

Constructor & Destructor Documentation

CMceAudioStream()

CMceAudioStream()[private]

C++ default constructor.

~CMceAudioStream()

IMPORT_C~CMceAudioStream()

Destructor.

Member Functions Documentation

AddCodecL(CMceAudioCodec *)

IMPORT_C voidAddCodecL(CMceAudioCodec *aCodec)

Adds codec to the stream.

Parameters

CMceAudioCodec * aCodeccodec added to the stream; ownership is transferred

BaseCodecs()

const RPointerArray< CMceCodec > &BaseCodecs()[virtual]

Return codecs of stream.

Codecs()

IMPORT_C const RPointerArray< CMceAudioCodec > &Codecs()

Returns the available codecs to the session. For CMEOutSession, array contains all codecs supported by terminal in default. For CMEInSession, array contains codecs that were offered by remote terminal, and supported by local terminal. Codecs are in preference order in the array. Codec in the first element of the array has highest preference.

ConstructL()

voidConstructL()[private]

Second-phase constructor.

EventReceivedL(TMceEvent &)

TInt EventReceivedL(TMceEvent &aEvent)[virtual]

Traversal event handler

Parameters

TMceEvent & aEventthe event

ExternalizeL(MMceComSerializationContext &)

voidExternalizeL(MMceComSerializationContext &aSerCtx)[virtual]

Externalizes

Parameters

MMceComSerializationContext & aSerCtx

FindCodec(CMceCodec &)

CMceCodec *FindCodec(CMceCodec &aCodec)[virtual]

Searches for codec matching with input codec instance or sdp name

Parameters

CMceCodec & aCodecthe search term

FindDtmfRelatedComponents(TBool &, TBool &, TBool &, TBool)

voidFindDtmfRelatedComponents(TBool &aRtpSourceExists,
TBool &aRtpSinkExists,
TBool &aDtmfCodecExists,
TBoolaBinderOriginated
)

Serches for existence of components needed for dtmf usage.

Parameters

TBool & aRtpSourceExists
TBool & aRtpSinkExists
TBool & aDtmfCodecExists
TBool aBinderOriginated

InitializeL(CMceSession &, TBool)

voidInitializeL(CMceSession &aParent,
TBoolaDiscardUnusedCodecs
)[virtual]

Initializes

Parameters

CMceSession & aParentthe parent
TBool aDiscardUnusedCodecs

InitializeL(CMceManager *, CMceSession &)

voidInitializeL(CMceManager *aManager,
CMceSession &aSession
)[virtual]

Initializes

Parameters

CMceManager * aManagerthe manager. Ownership is NOT transferred
CMceSession & aSessionthe Session.

InternalizeL(MMceComSerializationContext &)

voidInternalizeL(MMceComSerializationContext &aSerCtx)[virtual]

Internalizes

Parameters

MMceComSerializationContext & aSerCtx

NewL()

IMPORT_C CMceAudioStream *NewL()[static]

Two-phased constructor.

NewLC()

IMPORT_C CMceAudioStream *NewLC()[static]

Two-phased constructor.

RemoveCodecL(CMceAudioCodec &)

IMPORT_C voidRemoveCodecL(CMceAudioCodec &aCodec)

Removes codec from the stream

Parameters

CMceAudioCodec & aCodeccodec removed from stream

RemoveCodecL(CMceAudioCodec &, TBool)

voidRemoveCodecL(CMceAudioCodec &aCodec,
TBoolaBinderOriginated
)

Removes codec

Parameters

CMceAudioCodec & aCodec
TBool aBinderOriginated

ReorderCodecsByPreferenceL(TBool)

voidReorderCodecsByPreferenceL(TBoolaDiscardUnusedCodecs)[virtual]

Arrange audio codecs according codec preferences.

Parameters

TBool aDiscardUnusedCodecs

ReplaceCodecsL(RPointerArray< CMceAudioCodec > *)

IMPORT_C voidReplaceCodecsL(RPointerArray< CMceAudioCodec > *aCodecs)

Replaces codecs of the stream. Codecs should be in preference order in the passed array.

Parameters

RPointerArray< CMceAudioCodec > * aCodecsarray of codecs which will replace existing codecs; ownership is transferred

SynchronizeWithFileL(CMceFileSource &)

voidSynchronizeWithFileL(CMceFileSource &aFile)[virtual]

Called file source wants to synchronized with stream

Parameters

CMceFileSource & aFilethe file source

Member Data Documentation

RPointerArray< CMceAudioCodec > iCodecs

RPointerArray< CMceAudioCodec >iCodecs[private]

codecs