CMMFAudioOutput Class Reference

class CMMFAudioOutput : public CBase

Inherits from

Public Member Functions
~CMMFAudioOutput()
voidBufferFilledL(CMMFBuffer *)
TInt BytesPlayed()
TBool CanCreateSinkBuffer()
voidConstructL()
CMMFBuffer *CreateSinkBufferL(TMediaId, TBool &)
TFourCC DataType()
voidEmptyBufferL(CMMFBuffer *, MDataSource *, TMediaId)
voidHWEmptyBufferL(CMMFBuffer *, MDataSource *)
TBool IsResumeSupported()
voidNegotiateL(MDataSource &)
MDataSink *NewSinkL()
voidSetDataTypeL(TFourCC)
TInt SetSinkDataTypeCode(TFourCC, TMediaId)
voidSetSinkPrioritySettings(const TMMFPrioritySettings &)
TFourCC SinkDataTypeCode(TMediaId)
voidSinkPauseL()
voidSinkPlayL()
voidSinkPrimeL()
voidSinkStopL()
voidSinkThreadLogoff()
TInt SinkThreadLogon(MAsyncEventHandler &)
CMMFDevSound &SoundDevice()
Protected Member Functions
voidConstructSinkL(const TDesC8 &)
Private Member Functions
CMMFAudioOutput()
voidBufferToBeEmptied(CMMFBuffer *)
voidBufferToBeFilled(CMMFBuffer *)
voidConfigDevSoundL()
voidConvertError(TInt)
voidDeviceMessage(TUid, const TDesC8 &)
voidInitializeComplete(TInt)
voidLoadL()
voidPlayError(TInt)
voidRecordError(TInt)
voidSendEventToClient(const TMMFEvent &)
TInt State()
voidToneFinished(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
enumTError {
ECantCreateBuffer, EEmptyBuffer, EDevSoundNotLoaded, ERecordNotSupported, EDevSoundError, EUnknown
}
enumTState { EIdle = 0, EDevSoundReady, EPaused }
Private Attributes
CActiveSchedulerWait *iActiveSchedulerWait
CMMFBuffer *iAudioBuffer
CMMFBuffer *iBufferToEmpty
TBool iCanSendBuffers
CMMFChannelAndSampleRateConverter *iChannelAndSampleRateConverter
CMMFChannelAndSampleRateConverterFactory *iChannelAndSampleRateConverterFactory
CMMFDataBuffer *iConvertBuffer
TFourCC iDataTypeCode
CMMFDataBuffer *iDevSoundBuffer
TMMFCapabilities iDevSoundConfig
TBool iDevSoundLoaded
TError iError
MAsyncEventHandler *iEventHandler
TInt iInitializeState
CMMFDevSound *iMMFDevSound
TInt iMMFDevsoundError
TBool iNeedsSWConversion
TBool iPlayStarted
TMMFPrioritySettings iPrioritySettings
TUint iSWConvertChannels
TUint iSWConvertSampleRate
TUint iSourceChannels
TFourCC iSourceFourCC
TUint iSourceSampleRate
TState iState
MDataSource *iSupplier

Constructor & Destructor Documentation

CMMFAudioOutput()

CMMFAudioOutput()[private, inline]

~CMMFAudioOutput()

~CMMFAudioOutput()[virtual]

Member Functions Documentation

BufferFilledL(CMMFBuffer *)

voidBufferFilledL(CMMFBuffer *aBuffer)[virtual]

Parameters

CMMFBuffer * aBuffer

BufferToBeEmptied(CMMFBuffer *)

voidBufferToBeEmptied(CMMFBuffer *aBuffer)[private, virtual]

Parameters

CMMFBuffer * aBuffer

BufferToBeFilled(CMMFBuffer *)

voidBufferToBeFilled(CMMFBuffer *aBuffer)[private, virtual]

Parameters

CMMFBuffer * aBuffer

BytesPlayed()

TInt BytesPlayed()

CanCreateSinkBuffer()

TBool CanCreateSinkBuffer()[virtual]

ConfigDevSoundL()

voidConfigDevSoundL()[private]

ConstructL()

voidConstructL()

ConstructSinkL(const TDesC8 &)

voidConstructSinkL(const TDesC8 &aInitData)[protected, virtual]

Parameters

const TDesC8 & aInitData

ConvertError(TInt)

voidConvertError(TIntaError)[private, virtual]

Parameters

TInt aError

CreateSinkBufferL(TMediaId, TBool &)

CMMFBuffer *CreateSinkBufferL(TMediaIdaMediaId,
TBool &aReference
)[virtual]

Parameters

TMediaId aMediaId
TBool & aReference

DataType()

TFourCC DataType()const [virtual]

DeviceMessage(TUid, const TDesC8 &)

voidDeviceMessage(TUidaMessageType,
const TDesC8 &aMsg
)[private, virtual]

Parameters

TUid aMessageType
const TDesC8 & aMsg

EmptyBufferL(CMMFBuffer *, MDataSource *, TMediaId)

voidEmptyBufferL(CMMFBuffer *aBuffer,
MDataSource *aSupplier,
TMediaIdaMediaId
)[virtual]

Parameters

CMMFBuffer * aBuffer
MDataSource * aSupplier
TMediaId aMediaId

HWEmptyBufferL(CMMFBuffer *, MDataSource *)

voidHWEmptyBufferL(CMMFBuffer *aBuffer,
MDataSource *aSupplier
)

Parameters

CMMFBuffer * aBuffer
MDataSource * aSupplier

InitializeComplete(TInt)

voidInitializeComplete(TIntaError)[private, virtual]

Parameters

TInt aError

IsResumeSupported()

TBool IsResumeSupported()[virtual]

LoadL()

voidLoadL()[private]

NegotiateL(MDataSource &)

voidNegotiateL(MDataSource &aSource)[virtual]

Parameters

MDataSource & aSource

NewSinkL()

MDataSink *NewSinkL()[static]

PlayError(TInt)

voidPlayError(TIntaError)[private, virtual]

Parameters

TInt aError

RecordError(TInt)

voidRecordError(TIntaError)[private, virtual]

Parameters

TInt aError

SendEventToClient(const TMMFEvent &)

voidSendEventToClient(const TMMFEvent &)[private, virtual]

Parameters

const TMMFEvent &

SetDataTypeL(TFourCC)

voidSetDataTypeL(TFourCCaAudioType)[virtual]

Parameters

TFourCC aAudioType

SetSinkDataTypeCode(TFourCC, TMediaId)

TInt SetSinkDataTypeCode(TFourCCaSinkFourCC,
TMediaIdaMediaId
)[virtual]

Parameters

TFourCC aSinkFourCC
TMediaId aMediaId

SetSinkPrioritySettings(const TMMFPrioritySettings &)

voidSetSinkPrioritySettings(const TMMFPrioritySettings &aPrioritySettings)[virtual]

Parameters

const TMMFPrioritySettings & aPrioritySettings

SinkDataTypeCode(TMediaId)

TFourCC SinkDataTypeCode(TMediaIdaMediaId)[virtual]

Parameters

TMediaId aMediaId

SinkPauseL()

voidSinkPauseL()[virtual]

SinkPlayL()

voidSinkPlayL()[virtual]

SinkPrimeL()

voidSinkPrimeL()[virtual]

SinkStopL()

voidSinkStopL()[virtual]

SinkThreadLogoff()

voidSinkThreadLogoff()[virtual]

SinkThreadLogon(MAsyncEventHandler &)

TInt SinkThreadLogon(MAsyncEventHandler &aEventHandler)[virtual]

Parameters

MAsyncEventHandler & aEventHandler

SoundDevice()

CMMFDevSound &SoundDevice()

State()

TInt State()[private]

ToneFinished(TInt)

voidToneFinished(TIntaError)[private, virtual]

Parameters

TInt aError

Member Enumerations Documentation

Enum TError

Enumerators

ECantCreateBuffer
EEmptyBuffer
EDevSoundNotLoaded
ERecordNotSupported
EDevSoundError
EUnknown

Enum TState

Enumerators

EIdle = 0
EDevSoundReady
EPaused

Member Data Documentation

CActiveSchedulerWait * iActiveSchedulerWait

CActiveSchedulerWait *iActiveSchedulerWait[private]

CMMFBuffer * iAudioBuffer

CMMFBuffer *iAudioBuffer[private]

CMMFBuffer * iBufferToEmpty

CMMFBuffer *iBufferToEmpty[private]

TBool iCanSendBuffers

TBool iCanSendBuffers[private]

CMMFChannelAndSampleRateConverter * iChannelAndSampleRateConverter

CMMFChannelAndSampleRateConverter *iChannelAndSampleRateConverter[private]

CMMFChannelAndSampleRateConverterFactory * iChannelAndSampleRateConverterFactory

CMMFChannelAndSampleRateConverterFactory *iChannelAndSampleRateConverterFactory[private]

CMMFDataBuffer * iConvertBuffer

CMMFDataBuffer *iConvertBuffer[private]

TFourCC iDataTypeCode

TFourCC iDataTypeCode[private]

CMMFDataBuffer * iDevSoundBuffer

CMMFDataBuffer *iDevSoundBuffer[private]

TMMFCapabilities iDevSoundConfig

TMMFCapabilities iDevSoundConfig[private]

TBool iDevSoundLoaded

TBool iDevSoundLoaded[private]

TError iError

TError iError[private]

MAsyncEventHandler * iEventHandler

MAsyncEventHandler *iEventHandler[private]

TInt iInitializeState

TInt iInitializeState[private]

CMMFDevSound * iMMFDevSound

CMMFDevSound *iMMFDevSound[private]

TInt iMMFDevsoundError

TInt iMMFDevsoundError[private]

TBool iNeedsSWConversion

TBool iNeedsSWConversion[private]

TBool iPlayStarted

TBool iPlayStarted[private]

TMMFPrioritySettings iPrioritySettings

TMMFPrioritySettings iPrioritySettings[private]

TUint iSWConvertChannels

TUint iSWConvertChannels[private]

TUint iSWConvertSampleRate

TUint iSWConvertSampleRate[private]

TUint iSourceChannels

TUint iSourceChannels[private]

TFourCC iSourceFourCC

TFourCC iSourceFourCC[private]

TUint iSourceSampleRate

TUint iSourceSampleRate[private]

TState iState

TState iState[private]

MDataSource * iSupplier

MDataSource *iSupplier[private]