CMMFMdaAudioInputStream Class Reference

class CMMFMdaAudioInputStream : public CBase

Inherits from

  • CMMFMdaAudioInputStream

Nested Classes and Structures

Public Member Functions
~CMMFMdaAudioInputStream()
TInt BitRateL()
voidBufferToBeEmptied(CMMFBuffer *)
voidBufferToBeFilled(CMMFBuffer *)
voidConvertError(TInt)
TAny *CustomInterface(TUid)
TFourCC DataType()
voidDeviceMessage(TUid, const TDesC8 &)
TInt Gain()
TInt GetBalanceL()
TInt GetBytes()
voidGetSupportedBitRatesL(RArray< TInt > &)
voidInitializeComplete(TInt)
TInt MaxGain()
CMMFMdaAudioInputStream *NewL(MMdaAudioInputStreamCallback &)
CMMFMdaAudioInputStream *NewL(MMdaAudioInputStreamCallback &, TInt, TInt)
voidOpen(TMdaPackage *)
voidPlayError(TInt)
const TTimeIntervalMicroSeconds &Position()
voidReadL(TDes8 &)
voidRecordError(TInt)
voidRequestStop()
voidSetAudioPropertiesL(TInt, TInt)
voidSetBalanceL(TInt)
voidSetBitRateL(TInt)
voidSetDataTypeL(TFourCC)
voidSetGain(TInt)
voidSetPriority(TInt, TInt)
voidSetSingleBufferMode(TBool)
voidShutDown()
voidStop()
voidToneFinished(TInt)
Private Member Functions
CMMFMdaAudioInputStream(MMdaAudioInputStreamCallback &)
voidConstructL(TInt, TInt)
TInt Read(TDes8 &)
voidRealSetAudioPropertiesL(TInt, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumTIsOpenState { EIsNotOpen, EIsOpening, EIsOpen }
enumTState { EStopped, ERecording, EStopping }
Private Attributes
CActiveCallback *iActiveCallback
CActiveSchedulerWait *iActiveSchedulerWait
TBool iAudioDataStored
TPtr8 iBufferPtr
TInt iBytesRecorded
MMdaAudioInputStreamCallback &iCallback
TFourCC iDataTypeCode
CMMFDevSound *iDevSound
CMMFFifo< TDes8 > *iFifo
TBool iInitCallFrmSetDataType
TInt iInitializeState
TIsOpenState iIsOpenState
TTimeIntervalMicroSeconds iPosition
TMdaAudioDataSettings iSettings
TBool iSingleBuffer
TInt iState
TPtr8 iStorageItem

Constructor & Destructor Documentation

CMMFMdaAudioInputStream(MMdaAudioInputStreamCallback &)

CMMFMdaAudioInputStream(MMdaAudioInputStreamCallback &aCallback)[private]

Construct

Parameters

MMdaAudioInputStreamCallback & aCallback

~CMMFMdaAudioInputStream()

~CMMFMdaAudioInputStream()

Destructor

Member Functions Documentation

BitRateL()

TInt BitRateL()const

BufferToBeEmptied(CMMFBuffer *)

voidBufferToBeEmptied(CMMFBuffer *aBuffer)

Called when sound device has filled data buffer

Parameters

CMMFBuffer * aBuffer

BufferToBeFilled(CMMFBuffer *)

voidBufferToBeFilled(CMMFBuffer *aBuffer)

Do not support

Parameters

CMMFBuffer * aBuffer

ConstructL(TInt, TInt)

voidConstructL(TIntaPriority,
TIntaPref
)[private]

Second phase constructor

Parameters

TInt aPriority
TInt aPref

ConvertError(TInt)

voidConvertError(TIntaError)

Do not support

Parameters

TInt aError

CustomInterface(TUid)

TAny *CustomInterface(TUidaInterfaceId)

Parameters

TUid aInterfaceId

DataType()

TFourCC DataType()const

DeviceMessage(TUid, const TDesC8 &)

voidDeviceMessage(TUidaMessageType,
const TDesC8 &aMsg
)

Do not support

Parameters

TUid aMessageType
const TDesC8 & aMsg

Gain()

TInt Gain()const

To get the current gain level

GetBalanceL()

TInt GetBalanceL()const

To get the current balance value.This function may not return the same value as passed to SetBalanceL depending on the internal implementation in the underlying components.

GetBytes()

TInt GetBytes()

To return the current number of bytes recorded by audio hardware

GetSupportedBitRatesL(RArray< TInt > &)

voidGetSupportedBitRatesL(RArray< TInt > &aSupportedBitRates)

Parameters

RArray< TInt > & aSupportedBitRates

InitializeComplete(TInt)

voidInitializeComplete(TIntaError)

To be called when intialize stream complete

Parameters

TInt aError

MaxGain()

TInt MaxGain()const

To get the maximum gain level

NewL(MMdaAudioInputStreamCallback &)

CMMFMdaAudioInputStream *NewL(MMdaAudioInputStreamCallback &aCallback)[static]

Parameters

MMdaAudioInputStreamCallback & aCallback

NewL(MMdaAudioInputStreamCallback &, TInt, TInt)

CMMFMdaAudioInputStream *NewL(MMdaAudioInputStreamCallback &aCallback,
TIntaPriority,
TIntaPref
)[static]

Parameters

MMdaAudioInputStreamCallback & aCallback
TInt aPriority
TInt aPref

Open(TMdaPackage *)

voidOpen(TMdaPackage *aSettings)

Open a audio ouptut stream

Parameters

TMdaPackage * aSettings

PlayError(TInt)

voidPlayError(TIntaError)

Called when record operation complete, successfully or otherwise

Parameters

TInt aError

Position()

const TTimeIntervalMicroSeconds &Position()

To get the current position in the data stream

Read(TDes8 &)

TInt Read(TDes8 &aData)[private]

To read data from input stream

capability
UserEnvironment For recording - the requesting client process must have the UserEnvironment capability.

Parameters

TDes8 & aData

ReadL(TDes8 &)

voidReadL(TDes8 &aData)

To read data from input stream

capability
UserEnvironment For recording - the requesting client process must have the UserEnvironment capability.

Parameters

TDes8 & aData

RealSetAudioPropertiesL(TInt, TInt)

voidRealSetAudioPropertiesL(TIntaSampleRate,
TIntaChannels
)[private]

Parameters

TInt aSampleRate
TInt aChannels

RecordError(TInt)

voidRecordError(TIntaError)

Do not support

Parameters

TInt aError

RequestStop()

voidRequestStop()

To pause write data to stream Allow yet unprocessed buffers to be processed and passed back via BufferToBeEmptied. When the last (empty) buffer arrives, Stop is called.

SetAudioPropertiesL(TInt, TInt)

voidSetAudioPropertiesL(TIntaSampleRate,
TIntaChannels
)

Set audio input stream properties

Parameters

TInt aSampleRate
TInt aChannels

SetBalanceL(TInt)

voidSetBalanceL(TIntaBalance =  KMMFBalanceCenter )

Set audio input stream balance

Parameters

TInt aBalance =  KMMFBalanceCenter

SetBitRateL(TInt)

voidSetBitRateL(TIntaBitRate)

Parameters

TInt aBitRate

SetDataTypeL(TFourCC)

voidSetDataTypeL(TFourCCaAudioType)

Parameters

TFourCC aAudioType

SetGain(TInt)

voidSetGain(TIntaGain)

Set audio input stream gain to the specified value

Parameters

TInt aGain

SetPriority(TInt, TInt)

voidSetPriority(TIntaPriority,
TIntaPref
)

Set audio input stream priority

Parameters

TInt aPriority
TInt aPref

SetSingleBufferMode(TBool)

voidSetSingleBufferMode(TBoolaSingleMode)

Parameters

TBool aSingleMode

ShutDown()

voidShutDown()

Stop()

voidStop()

To stop write data to stream

ToneFinished(TInt)

voidToneFinished(TIntaError)

Do not support

Parameters

TInt aError

Member Enumerations Documentation

Enum TIsOpenState

Enumerators

EIsNotOpen
EIsOpening
EIsOpen

Enum TState

Enumerators

EStopped
ERecording
EStopping

Member Data Documentation

CActiveCallback * iActiveCallback

CActiveCallback *iActiveCallback[private]

CActiveSchedulerWait * iActiveSchedulerWait

CActiveSchedulerWait *iActiveSchedulerWait[private]

TBool iAudioDataStored

TBool iAudioDataStored[private]

TPtr8 iBufferPtr

TPtr8 iBufferPtr[private]

TInt iBytesRecorded

TInt iBytesRecorded[private]

MMdaAudioInputStreamCallback & iCallback

MMdaAudioInputStreamCallback &iCallback[private]

TFourCC iDataTypeCode

TFourCC iDataTypeCode[private]

CMMFDevSound * iDevSound

CMMFDevSound *iDevSound[private]

CMMFFifo< TDes8 > * iFifo

CMMFFifo< TDes8 > *iFifo[private]

TBool iInitCallFrmSetDataType

TBool iInitCallFrmSetDataType[private]

TInt iInitializeState

TInt iInitializeState[private]

TIsOpenState iIsOpenState

TIsOpenState iIsOpenState[private]

TTimeIntervalMicroSeconds iPosition

TTimeIntervalMicroSeconds iPosition[private]

TMdaAudioDataSettings iSettings

TMdaAudioDataSettings iSettings[private]

TBool iSingleBuffer

TBool iSingleBuffer[private]

TInt iState

TInt iState[private]

TPtr8 iStorageItem

TPtr8 iStorageItem[private]