|
|
|||
Location:
mmf\server\MmfAudioinput.h
Link against: mmfaudioinput.lib
class CMMFAudioInput : public CBase, public MMMFAudioInput, public MDevSoundObserver;
Concrete data source to provide microphone support.
Intended to be used by controller plugin developers for source plugins. Uses CMMFDevSound to access hardware.
MDevSoundObserver - An interface to a set of DevSound callback functionsMDataSource - Abstract class representing a data sourceMMMFAudioInput - Interface class to allow dynamic linkage to CBase - Base class for all classes to be instantiated on the heapCMMFAudioInput - Concrete data source to provide microphone supportDefined in CMMFAudioInput:
BufferEmptiedL(), BytesPlayed(), CanCreateSourceBuffer(), ConstructSourceL(), CreateSourceBufferL(), CreateSourceBufferL(), CreateSourceBufferL(), CreateSourceBufferL(), DataType(), FillBufferL(), HWFillBufferL(), NegotiateSourceL(), SetDataTypeL(), SetSourceDataTypeCode(), SetSourcePrioritySettings(), SoundDevice(), SourceDataTypeCode(), SourcePauseL(), SourcePlayL(), SourcePrimeL(), SourceStopL(), SourceThreadLogoff(), SourceThreadLogon(), iBufferStatus, ~CMMFAudioInput()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from MDataSource:
DataSourceType(),
NewSourceL(),
SourceCustomCommand(),
SourceSampleConvert()
Inherited from MDevSoundObserver:
BufferToBeEmptied(),
BufferToBeFilled(),
ConvertError(),
DeviceMessage(),
InitializeComplete(),
PlayError(),
RecordError(),
SendEventToClient(),
ToneFinished()
Inherited from MMMFAudioInput:
NewAudioInputL()
virtual TFourCC SourceDataTypeCode(TMediaId aMediaId);
Gets the data type code for the source specified by the media ID.
|
|
virtual void FillBufferL(CMMFBuffer *aBuffer, MDataSink *aConsumer, TMediaId aMediaId);
iMMFDevSound must be loaded.
Gets audio from MMFDevsound.
|
virtual void BufferEmptiedL(CMMFBuffer *aBuffer);
Indicates the data sink has emptied the buffer.
Called by the data path's MDataSink when it has emptied the buffer.
The default implementation is empty.
|
virtual TBool CanCreateSourceBuffer();
Tests whether a source buffer can be created.
The default imlpementation returns true.
|
virtual CMMFBuffer *CreateSourceBufferL(TMediaId aMediaId);
Creates a source buffer.
Intended for synchronous usage.
|
|
inline virtual CMMFBuffer *CreateSourceBufferL(TMediaId aMediaId, CMMFBuffer &aSinkBuffer);
Intended for synchronous usage (returns buffer specific to a Media Type).
|
|
virtual CMMFBuffer *CreateSourceBufferL(TMediaId aMediaId, TBool &aReference);
Creates a source buffer.
Intended for asynchronous usage (buffers supplied by Devsound device)
|
|
inline virtual CMMFBuffer *CreateSourceBufferL(TMediaId aMediaId, CMMFBuffer &aSinkBuffer, TBool &aReference);
Creates a source buffer.
Intended for asynchronous usage (returns buffer specific to a Media Type).
|
|
virtual TInt SourceThreadLogon(MAsyncEventHandler &aEventHandler);
Logs on the source thread.
Thread specific initialization procedure for this device. Runs automatically on thread construction.
|
|
virtual void SourceThreadLogoff();
Logs off the source thread.
Thread specific destruction procedure for this device. Runs automatically on thread destruction.
virtual void SourcePrimeL();
Primes the source.
This is a virtual function that each derived class must implement, but may be left blank for default behaviour.
Overridable PrimeL method. Additional Prime method specific to this DataSource.
virtual void SourceStopL();
Stops the source.
This is a virtual function that each derived class must implement, but may be left blank for default behaviour.
Overridable StopL method. Additional Stop method specific to this DataSource.
virtual void SourcePlayL();
Plays the source.
This is a virtual function that each derived class must implement, but may be left blank for default behaviour.
Overridable PlayL method. Additional Play method specific to this DataSource.
virtual void SourcePauseL();
Pauses the source.
This is a virtual function that each derived class must implement, but may be left blank for default behaviour.
Overridable PauseL method. Additional Pause method specific to this DataSource.
virtual void SetSourcePrioritySettings(const TMMFPrioritySettings &aPrioritySettings);
Sets the source's priority settings.
|
virtual void NegotiateSourceL(MDataSink &aSink);
Negotiates with the sink.
Called if the source's setup depends on sink.
|
virtual TInt BytesPlayed();
Gets the number of bytes played.
|
| Interface status: | deprecated |
virtual void HWFillBufferL(CMMFBuffer *aBuffer, MDataSink *aConsumer);
Gets audio from hardware device abstracted MMFDevsound (not used).
|
virtual CMMFDevSound &SoundDevice();
Dev Sound should be loaded.
Returns the sound device.
Accessor function exposing public CMMFDevsound methods.
|
virtual TInt SetSourceDataTypeCode(TFourCC aSourceFourCC, TMediaId aMediaId);
Sets the data type code for the source.
|
|
| Interface status: | deprecated |
virtual void SetDataTypeL(TFourCC aAudioType);
This method should not be used - it is provided to maintain SC with v7.0s.
|
| Interface status: | deprecated |
virtual TFourCC DataType() const;
This method should not be used - it is provided to maintain SC with v7.0s.
|
protected: virtual void ConstructSourceL(const TDesC8 &aInitData);
Overridable constuctor specific to this datasource.
|
TRequestStatus iBufferStatus;
Buffer completion status.