MAudioGainControlObserver Class Reference

class MAudioGainControlObserver

An interface to a set of AudioGainControl callback functions.

this serves as the method of communication between the client and the AudioGainControl.

The class is a mixin and is intended to be inherited by the client class that is interested in observing the Gain operations. The functions encapsulated by this class are called when specific events occur while processing audio.

Member Functions Documentation

GainChanged(MAudioGainControl &, TInt)

voidGainChanged(MAudioGainControl &aGain,
TIntaError
)[pure virtual]

Notifies the observer that the gain has changed, due to request from the client or otherwise. If gain change by the client cannot be fulfilled, a gain change with an error code other than KErrNone will be issued.

Parameters

MAudioGainControl & aGaina reference to the gain control whose gain has changed.
TInt aError

MaxGainChanged(MAudioGainControl &)

voidMaxGainChanged(MAudioGainControl &aGain)[pure virtual]

Notifies the observer that the maximum gain value supported by the gain control has changed.

Parameters

MAudioGainControl & aGaina reference to GainControl whose max gain changed.

MaxRampTimeChanged(MAudioGainControl &)

voidMaxRampTimeChanged(MAudioGainControl &aGain)[pure virtual]

Notifies the observer that the max ramp time supported by the gain control has changed.

Parameters

MAudioGainControl & aGaina reference to GainControl whose max ramp time changed.