MMMFAudioInput Class Reference

#include <mmf/server/mmfaudioinput.h>

Link against: mmccsubcontroller.lib

class MMMFAudioInput : public MDataSource

Inherits from

Public Member Functions
pure virtual TInt BytesPlayed()
pure virtual voidHWFillBufferL(CMMFBuffer *, MDataSink *)
MMMFAudioInput *NewAudioInputL(TUid, const TDesC8 &)
pure virtual CMMFDevSound &SoundDevice()
Protected Member Functions
MMMFAudioInput()

Detailed Description

Interface class to allow dynamic linkage to CMMFAudioInput.

Constructor & Destructor Documentation

MMMFAudioInput ( )

MMMFAudioInput()[protected, inline]

Protected constructor.

Member Function Documentation

BytesPlayed ( )

TInt BytesPlayed()[pure virtual]

Returns the number of bytes played.

Returns: The number of bytes played. If 16-bit divide this number returned by 2 to get word length.

HWFillBufferL ( CMMFBuffer *, MDataSink * )

voidHWFillBufferL(CMMFBuffer *aBuffer,
MDataSink *aConsumer
)[pure virtual]

Deprecated

Gets audio from hardware device abstracted MMFDevsound (not used).

ParameterDescription
aBufferThe data to read in from a Hardware Device
aConsumerThe MDataSink consuming the data contained in aBuffer.

NewAudioInputL ( TUid, const TDesC8 & )

MMMFAudioInput *NewAudioInputL(TUidaImplementationUid,
const TDesC8 &aInitData
)[static, inline]

Allocates and constructs an audio input object.

Calls MDataSource::NewSourceL().

ParameterDescription
aImplementationUidThe Implementation UID.
aInitDataThe initialisation data.

Returns: A new audio input object.

SoundDevice ( )

CMMFDevSound &SoundDevice()[pure virtual]

Returns the sound device.

Returns: A reference to a CMMFDevSound objector. Accessor function exposing public CMMFDevsound methods.