![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
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 functions.
MDataSource
-
Abstract class representing a data source.
MMMFAudioInput
-
Interface class to allow dynamic linkage to CMMFAudioInput.
CBase
-
Base class for all classes to be instantiated on the heap.
CMMFAudioInput
-
Concrete data source to provide microphone support.
Defined in CMMFAudioInput
:
BufferEmptiedL(CMMFBuffer *)
Indicates the data sink has emptied the buffer.BufferToBeEmptied(CMMFBuffer *)
BuffferToBeEmptied MMFDevSoundObserver Called when stopped due to error. BufferToBeFilled(CMMFBuffer *)
BufferToBeFilled MMFDevSoundObserver - should never get called. BytesPlayed()
Gets the number of bytes played.CanCreateSourceBuffer()
Tests whether a source buffer can be created.ConstructSourceL(const TDesC8 &)
Overridable constuctor specific to this datasource.ConvertError(TInt)
ConvertError MMFDevSoundObserver - should never get called. CreateSourceBufferL(TMediaId)
Creates a source buffer.CreateSourceBufferL(TMediaId,CMMFBuffer &)
Intended for synchronous usage (returns buffer specific to a Media Type).CreateSourceBufferL(TMediaId,CMMFBuffer &,TBool &)
Creates a source buffer.CreateSourceBufferL(TMediaId,TBool &)
Creates a source buffer.DataType()const
This method should not be used - it is provided to maintain SC with v7.0s.DeviceMessage(TUid,const TDesC8 &)
Handles device event.FillBufferL(CMMFBuffer *,MDataSink *,TMediaId)
Gets audio from MMFDevsound.HWFillBufferL(CMMFBuffer *,MDataSink *)
Gets audio from hardware device abstracted MMFDevsound (not used).InitializeComplete(TInt)
Handles initialization completion event.NegotiateSourceL(MDataSink &)
Negotiates with the sink.PlayError(TInt)
PlayError MMFDevSoundObserver - should never get called. RecordError(TInt)
RecordError MMFDevSoundObserver Called when stopped due to error. SendEventToClient(const TMMFEvent &)
Handles policy request completion event.SetDataTypeL(TFourCC)
This method should not be used - it is provided to maintain SC with v7.0s.SetSourceDataTypeCode(TFourCC,TMediaId)
Sets the data type code for the source.SetSourcePrioritySettings(const TMMFPrioritySettings &)
Sets the source's priority settings.SoundDevice()
Returns the sound device.SourceDataTypeCode(TMediaId)
Gets the data type code for the source specified by the media ID.SourcePauseL()
Pauses the source.SourcePlayL()
Plays the source.SourcePrimeL()
Primes the source.SourceStopL()
Stops the source.SourceThreadLogoff()
Logs off the source thread.SourceThreadLogon(MAsyncEventHandler &)
Logs on the source thread.ToneFinished(TInt)
ToneFinished MMFDevSoundObserver - should never get called. iBufferStatus
Buffer completion status.~CMMFAudioInput()
Standard SymbianOS destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from MDataSource
:
DataSourceType()const
Returns the UID identifying the type of data source.MDataSource(TUid)
Protected constructor.NewSourceL(TUid,const TDesC8 &)
Instantiates a data source.SourceCustomCommand(TMMFMessage &)
Function to call a source specific custom command.SourceSampleConvert()
Indicates whether the data source supports sample rate conversion.Inherited from MMMFAudioInput
:
NewAudioInputL(TUid,const TDesC8 &)
Allocates and constructs an audio input object.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.
|
private: virtual void InitializeComplete(TInt aError);
Handles initialization completion event.
A derived class must provide an implementation to handle the initialization request.
CMMFDevSound
object calls this function when its InitializeL() function completes.
|
private: virtual void ToneFinished(TInt aError);
ToneFinished MMFDevSoundObserver - should never get called.
|
private: virtual void BufferToBeFilled(CMMFBuffer *aBuffer);
BufferToBeFilled MMFDevSoundObserver - should never get called.
|
private: virtual void PlayError(TInt aError);
PlayError MMFDevSoundObserver - should never get called.
|
private: virtual void BufferToBeEmptied(CMMFBuffer *aBuffer);
BuffferToBeEmptied MMFDevSoundObserver Called when stopped due to error.
|
private: virtual void RecordError(TInt aError);
RecordError MMFDevSoundObserver Called when stopped due to error.
|
private: virtual void ConvertError(TInt aError);
ConvertError MMFDevSoundObserver - should never get called.
|
private: virtual void DeviceMessage(TUid aMessageType, const TDesC8 &aMsg);
Handles device event.
A derived class must provide an implementtion to handle the messages from audio hardware device.
CMMFDevSound
object calls this function when a message is received from the audio hardware device.
|
private: virtual void SendEventToClient(const TMMFEvent &);
Handles policy request completion event.
A derived class must provide an implementation to handle the policy request completion event.
CMMFDevSound
object calls this function when an attempt to acquire sound device is rejected by audio policy server.
|
TRequestStatus iBufferStatus;
Buffer completion status.