MMdaObjectStateChangeObserver Class Reference

class MMdaObjectStateChangeObserver

An interface class for handling the change of state of an audio data sample object.

The class is a mixin and is intended to be inherited by the client class which is observing the audio recording or the audio conversion operation. The class defines a single function which must be implemented by the inheriting client class.

This class is maintained for binary compatibility with versions prior to 7.0s.

Defined in MMdaObjectStateChangeObserver: MoscoStateChangeEvent()

Public Member Functions
voidMoscoStateChangeEvent(CBase *, TInt, TInt, TInt)

Member Functions Documentation

MoscoStateChangeEvent(CBase *, TInt, TInt, TInt)

voidMoscoStateChangeEvent(CBase *aObject,
TIntaPreviousState,
TIntaCurrentState,
TIntaErrorCode
)[pure virtual]

This method is used to receive the updated state of an audio data sample object. This method must be implemented by the inheriting client class.

Parameters

CBase * aObjectThe audio data sample object whose state has changed.
TInt aPreviousStateThis is the previous state of the audio data sample object before it went into the current state. It is expected to be one of the enum values defined in CMdaAudioClipUtility::TState, which defines the possible states of an audio data sample.
TInt aCurrentStateThis is the current state of the audio data sample object. It is expected to be one of the enum values defined in CMdaAudioClipUtility::TState, which defines the possible states of an audio data sample.
TInt aErrorCodeA system wide error code, KErrNone for sucessful completion. KErrInUse, KErrDied or KErrAccessDenied may be returned to indicate that the sound device is in use by another higher priority client.