Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: MmfAudioInput.h

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class MMMFAudioInput

class MMMFAudioInput : public MDataSource;

Description

Interface class to allow dynamic linkage to CMMFAudioInput.

Derivation

Members

Defined in MMMFAudioInput:
BytesPlayed(), HWFillBufferL(), MMMFAudioInput(), NewAudioInputL(), SoundDevice()

Inherited from MDataSource:
BufferEmptiedL(), CanCreateSourceBuffer(), ConstructSourceL(), CreateSourceBufferL(), DataSourceType(), FillBufferL(), NegotiateSourceL(), NewSourceL(), SetSourceDataTypeCode(), SetSourcePrioritySettings(), SourceCustomCommand(), SourceDataTypeCode(), SourcePauseL(), SourcePlayL(), SourcePrimeL(), SourceSampleConvert(), SourceStopL(), SourceThreadLogoff(), SourceThreadLogon()


Construction and destruction


MMMFAudioInput()

protected: inline MMMFAudioInput();

Description

Protected constructor.

[Top]


Member functions


NewAudioInputL()

static inline MMMFAudioInput *NewAudioInputL(TUid aImplementationUid, const TDesC8 &aInitData);

Description

Allocates and constructs an audio input object.

Calls MDataSource::NewSourceL().

Parameters

TUid aImplementationUid

The Implementation UID.

const TDesC8 &aInitData

The initialisation data.

Return value

MMMFAudioInput *

A new audio input object.


SoundDevice()

virtual CMMFDevSound &SoundDevice()=0;

Description

Returns the sound device.

Return value

CMMFDevSound &

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


BytesPlayed()

virtual TInt BytesPlayed()=0;

Description

Returns the number of bytes played.

Return value

TInt

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


HWFillBufferL()

virtual void HWFillBufferL(CMMFBuffer *aBuffer, MDataSink *aConsumer)=0;

Description

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

Parameters

CMMFBuffer *aBuffer

The data to read in from a Hardware Device

MDataSink *aConsumer

The MDataSink consuming the data contained in aBuffer.