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)

void GainChanged ( MAudioGainControl & aGain,
TInt aError
) [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 & aGain a reference to the gain control whose gain has changed.
TInt aError

MaxGainChanged(MAudioGainControl &)

void MaxGainChanged ( MAudioGainControl & aGain ) [pure virtual]

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

Parameters

MAudioGainControl & aGain a reference to GainControl whose max gain changed.

MaxRampTimeChanged(MAudioGainControl &)

void MaxRampTimeChanged ( MAudioGainControl & aGain ) [pure virtual]

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

Parameters

MAudioGainControl & aGain a reference to GainControl whose max ramp time changed.