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
void MoscoStateChangeEvent ( CBase *, TInt , TInt , TInt )

Member Functions Documentation

MoscoStateChangeEvent(CBase *, TInt, TInt, TInt)

void MoscoStateChangeEvent ( CBase * aObject,
TInt aPreviousState,
TInt aCurrentState,
TInt aErrorCode
) [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 * aObject The audio data sample object whose state has changed.
TInt aPreviousState This 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 aCurrentState This 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 aErrorCode A 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.