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.
Public Member Functions | |
---|---|
~CMMFAudioInput() | |
void | BufferEmptiedL(CMMFBuffer *) |
TInt | BytesPlayed() |
TBool | CanCreateSourceBuffer() |
void | ConstructL() |
CMMFBuffer * | CreateSourceBufferL(TMediaId) |
CMMFBuffer * | CreateSourceBufferL(TMediaId, CMMFBuffer &) |
CMMFBuffer * | CreateSourceBufferL(TMediaId, TBool &) |
CMMFBuffer * | CreateSourceBufferL(TMediaId, CMMFBuffer &, TBool &) |
TFourCC | DataType() |
void | FillBufferL(CMMFBuffer *, MDataSink *, TMediaId) |
void | HWFillBufferL(CMMFBuffer *, MDataSink *) |
void | LoadL() |
void | NegotiateSourceL(MDataSink &) |
MDataSource * | NewSourceL() |
void | SetDataTypeL(TFourCC) |
TInt | SetSourceDataTypeCode(TFourCC, TMediaId) |
void | SetSourcePrioritySettings(const TMMFPrioritySettings &) |
CMMFDevSound & | SoundDevice() |
TFourCC | SourceDataTypeCode(TMediaId) |
void | SourcePauseL() |
void | SourcePlayL() |
void | SourcePrimeL() |
void | SourceStopL() |
void | SourceThreadLogoff() |
TInt | SourceThreadLogon(MAsyncEventHandler &) |
Protected Member Functions | |
---|---|
void | ConstructSourceL(const TDesC8 &) |
Private Member Functions | |
---|---|
CMMFAudioInput() | |
void | BufferToBeEmptied(CMMFBuffer *) |
void | BufferToBeFilled(CMMFBuffer *) |
void | ConfigDevSoundL() |
void | ConvertError(TInt) |
void | DeviceMessage(TUid, const TDesC8 &) |
void | InitializeComplete(TInt) |
void | PlayError(TInt) |
void | RecordError(TInt) |
void | SendEventToClient(const TMMFEvent &) |
void | ToneFinished(TInt) |
Private Member Enumerations | |
---|---|
enum | TCodec { EUseARMCodec = 0, EUseHWCodec } |
enum | TError { ECantCreateBuffer, EEmptyBuffer, EDevSoundNotLoaded, EUnknown } |
enum | TState { EIdle = 0, EPaused, EDevSoundReady, EBufferEmpty } |
Public Attributes | |
---|---|
TRequestStatus | iBufferStatus |
void | BufferEmptiedL | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
CMMFBuffer * aBuffer |
void | BufferToBeEmptied | ( | CMMFBuffer * | aBuffer | ) | [private, virtual] |
CMMFBuffer * aBuffer |
void | BufferToBeFilled | ( | CMMFBuffer * | aBuffer | ) | [private, virtual] |
CMMFBuffer * aBuffer |
void | ConstructSourceL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
const TDesC8 & aInitData |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId | ) | [virtual] |
TMediaId aMediaId |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId, |
CMMFBuffer & | aSinkBuffer | |||
) | [inline, virtual] |
Intended for synchronous usage (returns buffer specific to a Media Type).
A pointer to the CMMFBuffer source buffer.
TMediaId aMediaId | The Media ID. |
CMMFBuffer & aSinkBuffer | Not Used. |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId, |
CMMFBuffer & | aSinkBuffer, | |||
TBool & | aReference | |||
) | [inline, virtual] |
Creates a source buffer.
Intended for asynchronous usage (returns buffer specific to a Media Type).
The source buffer.
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. |
void | DeviceMessage | ( | TUid | aMessageType, |
const TDesC8 & | aMsg | |||
) | [private, virtual] |
void | FillBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSink * | aConsumer, | |||
TMediaId | aMediaId | |||
) | [virtual] |
CMMFBuffer * aBuffer | |
MDataSink * aConsumer | |
TMediaId aMediaId |
void | HWFillBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSink * | aConsumer | |||
) |
CMMFBuffer * aBuffer | |
MDataSink * aConsumer |
void | NegotiateSourceL | ( | MDataSink & | aSink | ) | [virtual] |
MDataSink & aSink |
void | SendEventToClient | ( | const TMMFEvent & | ) | [private, virtual] |
const TMMFEvent & |
TInt | SetSourceDataTypeCode | ( | TFourCC | aSourceFourCC, |
TMediaId | aMediaId | |||
) | [virtual] |
void | SetSourcePrioritySettings | ( | const TMMFPrioritySettings & | aPrioritySettings | ) | [virtual] |
const TMMFPrioritySettings & aPrioritySettings |
TFourCC | SourceDataTypeCode | ( | TMediaId | aMediaId | ) | [virtual] |
TMediaId aMediaId |
TInt | SourceThreadLogon | ( | MAsyncEventHandler & | aEventHandler | ) | [virtual] |
MAsyncEventHandler & aEventHandler |