CMMFAudioInput Class Reference
class CMMFAudioInput : public CBase
|
Concrete data source to provide microphone support.
Intended to be used by controller plugin developers for source plugins. Uses
CMMFDevSound
to access hardware.
Constructor & Destructor Documentation
CMMFAudioInput()
CMMFAudioInput
|
(
|
)
|
[private, inline]
|
~CMMFAudioInput()
~CMMFAudioInput
|
(
|
)
|
[virtual]
|
Member Functions Documentation
BufferEmptiedL(CMMFBuffer *)
void
|
BufferEmptiedL
|
(
|
CMMFBuffer
*
|
aBuffer
|
)
|
[virtual]
|
BufferToBeEmptied(CMMFBuffer *)
void
|
BufferToBeEmptied
|
(
|
CMMFBuffer
*
|
aBuffer
|
)
|
[private, virtual]
|
BufferToBeFilled(CMMFBuffer *)
void
|
BufferToBeFilled
|
(
|
CMMFBuffer
*
|
aBuffer
|
)
|
[private, virtual]
|
CanCreateSourceBuffer()
TBool
|
CanCreateSourceBuffer
|
(
|
)
|
[virtual]
|
ConfigDevSoundL()
void
|
ConfigDevSoundL
|
(
|
)
|
[private]
|
ConstructSourceL(const TDesC8 &)
void
|
ConstructSourceL
|
(
|
const
TDesC8
&
|
aInitData
|
)
|
[protected, virtual]
|
ConvertError(TInt)
void
|
ConvertError
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
CreateSourceBufferL(TMediaId)
CreateSourceBufferL(TMediaId, CMMFBuffer &)
Intended for synchronous usage (returns buffer specific to a Media Type).
CreateSourceBufferL(TMediaId, TBool &)
CreateSourceBufferL(TMediaId, CMMFBuffer &, TBool &)
Creates a source buffer.
Intended for asynchronous usage (returns buffer specific to a Media Type).
Parameters
TMediaId
aMediaId
|
The Media ID.
|
CMMFBuffer
& aSinkBuffer
|
Not used.
|
TBool
& aReference
|
A boolean indicating if MDataSource owns the buffer. If EFalse the the caller owns the buffer.
|
DataType()
TFourCC
|
DataType
|
(
|
)
|
const [virtual]
|
DeviceMessage(TUid, const TDesC8 &)
void
|
DeviceMessage
|
(
|
TUid
|
aMessageType,
|
|
const
TDesC8
&
|
aMsg
|
|
)
|
[private, virtual]
|
FillBufferL(CMMFBuffer *, MDataSink *, TMediaId)
HWFillBufferL(CMMFBuffer *, MDataSink *)
InitializeComplete(TInt)
void
|
InitializeComplete
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
NegotiateSourceL(MDataSink &)
void
|
NegotiateSourceL
|
(
|
MDataSink
&
|
aSink
|
)
|
[virtual]
|
PlayError(TInt)
void
|
PlayError
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
RecordError(TInt)
void
|
RecordError
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
SendEventToClient(const TMMFEvent &)
void
|
SendEventToClient
|
(
|
const
TMMFEvent
&
|
|
)
|
[private, virtual]
|
SetDataTypeL(TFourCC)
void
|
SetDataTypeL
|
(
|
TFourCC
|
aAudioType
|
)
|
[virtual]
|
SetSourceDataTypeCode(TFourCC, TMediaId)
SetSourcePrioritySettings(const TMMFPrioritySettings &)
SourceDataTypeCode(TMediaId)
SourcePauseL()
void
|
SourcePauseL
|
(
|
)
|
[virtual]
|
SourcePlayL()
void
|
SourcePlayL
|
(
|
)
|
[virtual]
|
SourcePrimeL()
void
|
SourcePrimeL
|
(
|
)
|
[virtual]
|
SourceStopL()
void
|
SourceStopL
|
(
|
)
|
[virtual]
|
SourceThreadLogoff()
void
|
SourceThreadLogoff
|
(
|
)
|
[virtual]
|
SourceThreadLogon(MAsyncEventHandler &)
ToneFinished(TInt)
void
|
ToneFinished
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
Member Enumerations Documentation
Enum TCodec
Enumerators
EUseARMCodec = 0
|
|
EUseHWCodec
|
|
Enum TError
Enumerators
ECantCreateBuffer
|
|
EEmptyBuffer
|
|
EDevSoundNotLoaded
|
|
EUnknown
|
|
Enum TState
Enumerators
EIdle = 0
|
|
EPaused
|
|
EDevSoundReady
|
|
EBufferEmpty
|
|
Member Data Documentation
CActiveSchedulerWait * iActiveSchedulerWait
TRequestStatus
iBufferStatus
Buffer completion status.
CMMFBuffer * iDevSoundBuf
TBool
iDevSoundLoaded
TBool
|
iDevSoundLoaded
|
[private]
|
MAsyncEventHandler * iEventHandler
TBool
iFirstBufferRead
TBool
|
iFirstBufferRead
|
[private]
|
TBool
iFirstBufferRequested
TBool
|
iFirstBufferRequested
|
[private]
|
TInt
iInitializeState
TInt
|
iInitializeState
|
[private]
|
CMMFDevSound * iMMFDevSound
TInt
iMMFDevsoundError
TInt
|
iMMFDevsoundError
|
[private]
|
TBool
iPausePending
TBool
|
iPausePending
|
[private]
|
TMMFPrioritySettings
iPrioritySettings
TUint
iSinkChannels
TUint
|
iSinkChannels
|
[private]
|
TUint
iSinkSampleRate
TUint
|
iSinkSampleRate
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.