CMMFAudioOutput Class Reference

class CMMFAudioOutput : public CBase

Inherits from

Public Member Functions
~CMMFAudioOutput ()
void BufferFilledL ( CMMFBuffer *)
TInt BytesPlayed ()
TBool CanCreateSinkBuffer ()
void ConstructL ()
CMMFBuffer * CreateSinkBufferL ( TMediaId , TBool &)
TFourCC DataType ()
void EmptyBufferL ( CMMFBuffer *, MDataSource *, TMediaId )
void HWEmptyBufferL ( CMMFBuffer *, MDataSource *)
TBool IsResumeSupported ()
void NegotiateL ( MDataSource &)
MDataSink * NewSinkL ()
void SetDataTypeL ( TFourCC )
TInt SetSinkDataTypeCode ( TFourCC , TMediaId )
void SetSinkPrioritySettings (const TMMFPrioritySettings &)
TFourCC SinkDataTypeCode ( TMediaId )
void SinkPauseL ()
void SinkPlayL ()
void SinkPrimeL ()
void SinkStopL ()
void SinkThreadLogoff ()
TInt SinkThreadLogon ( MAsyncEventHandler &)
CMMFDevSound & SoundDevice ()
Protected Member Functions
void ConstructSinkL (const TDesC8 &)
Private Member Functions
CMMFAudioOutput ()
void BufferToBeEmptied ( CMMFBuffer *)
void BufferToBeFilled ( CMMFBuffer *)
void ConfigDevSoundL ()
void ConvertError ( TInt )
void DeviceMessage ( TUid , const TDesC8 &)
void InitializeComplete ( TInt )
void LoadL ()
void PlayError ( TInt )
void RecordError ( TInt )
void SendEventToClient (const TMMFEvent &)
TInt State ()
void ToneFinished ( 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
enum TError {
ECantCreateBuffer , EEmptyBuffer , EDevSoundNotLoaded , ERecordNotSupported , EDevSoundError , EUnknown
}
enum TState { 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 *)

void BufferFilledL ( CMMFBuffer * aBuffer ) [virtual]

Parameters

CMMFBuffer * aBuffer

BufferToBeEmptied(CMMFBuffer *)

void BufferToBeEmptied ( CMMFBuffer * aBuffer ) [private, virtual]

Parameters

CMMFBuffer * aBuffer

BufferToBeFilled(CMMFBuffer *)

void BufferToBeFilled ( CMMFBuffer * aBuffer ) [private, virtual]

Parameters

CMMFBuffer * aBuffer

BytesPlayed()

TInt BytesPlayed ( )

CanCreateSinkBuffer()

TBool CanCreateSinkBuffer ( ) [virtual]

ConfigDevSoundL()

void ConfigDevSoundL ( ) [private]

ConstructL()

void ConstructL ( )

ConstructSinkL(const TDesC8 &)

void ConstructSinkL ( const TDesC8 & aInitData ) [protected, virtual]

Parameters

const TDesC8 & aInitData

ConvertError(TInt)

void ConvertError ( TInt aError ) [private, virtual]

Parameters

TInt aError

CreateSinkBufferL(TMediaId, TBool &)

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

Parameters

TMediaId aMediaId
TBool & aReference

DataType()

TFourCC DataType ( ) const [virtual]

DeviceMessage(TUid, const TDesC8 &)

void DeviceMessage ( TUid aMessageType,
const TDesC8 & aMsg
) [private, virtual]

Parameters

TUid aMessageType
const TDesC8 & aMsg

EmptyBufferL(CMMFBuffer *, MDataSource *, TMediaId)

void EmptyBufferL ( CMMFBuffer * aBuffer,
MDataSource * aSupplier,
TMediaId aMediaId
) [virtual]

Parameters

CMMFBuffer * aBuffer
MDataSource * aSupplier
TMediaId aMediaId

HWEmptyBufferL(CMMFBuffer *, MDataSource *)

void HWEmptyBufferL ( CMMFBuffer * aBuffer,
MDataSource * aSupplier
)

Parameters

CMMFBuffer * aBuffer
MDataSource * aSupplier

InitializeComplete(TInt)

void InitializeComplete ( TInt aError ) [private, virtual]

Parameters

TInt aError

IsResumeSupported()

TBool IsResumeSupported ( ) [virtual]

LoadL()

void LoadL ( ) [private]

NegotiateL(MDataSource &)

void NegotiateL ( MDataSource & aSource ) [virtual]

Parameters

MDataSource & aSource

NewSinkL()

MDataSink * NewSinkL ( ) [static]

PlayError(TInt)

void PlayError ( TInt aError ) [private, virtual]

Parameters

TInt aError

RecordError(TInt)

void RecordError ( TInt aError ) [private, virtual]

Parameters

TInt aError

SendEventToClient(const TMMFEvent &)

void SendEventToClient ( const TMMFEvent & ) [private, virtual]

Parameters

const TMMFEvent &

SetDataTypeL(TFourCC)

void SetDataTypeL ( TFourCC aAudioType ) [virtual]

Parameters

TFourCC aAudioType

SetSinkDataTypeCode(TFourCC, TMediaId)

TInt SetSinkDataTypeCode ( TFourCC aSinkFourCC,
TMediaId aMediaId
) [virtual]

Parameters

TFourCC aSinkFourCC
TMediaId aMediaId

SetSinkPrioritySettings(const TMMFPrioritySettings &)

void SetSinkPrioritySettings ( const TMMFPrioritySettings & aPrioritySettings ) [virtual]

Parameters

const TMMFPrioritySettings & aPrioritySettings

SinkDataTypeCode(TMediaId)

TFourCC SinkDataTypeCode ( TMediaId aMediaId ) [virtual]

Parameters

TMediaId aMediaId

SinkPauseL()

void SinkPauseL ( ) [virtual]

SinkPlayL()

void SinkPlayL ( ) [virtual]

SinkPrimeL()

void SinkPrimeL ( ) [virtual]

SinkStopL()

void SinkStopL ( ) [virtual]

SinkThreadLogoff()

void SinkThreadLogoff ( ) [virtual]

SinkThreadLogon(MAsyncEventHandler &)

TInt SinkThreadLogon ( MAsyncEventHandler & aEventHandler ) [virtual]

Parameters

MAsyncEventHandler & aEventHandler

SoundDevice()

CMMFDevSound & SoundDevice ( )

State()

TInt State ( ) [private]

ToneFinished(TInt)

void ToneFinished ( TInt aError ) [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]