MMMFBufferSource Class Reference

class MMMFBufferSource

Buffer source is used for providing audio data from outside the audio process.

The type of the actual 'physical' source can be for example a file or a socket or the data could also be generated. Nevertheless, the client (the MAudioDataSupplier) is responsible for reading the data and providing it to the audio process by filling the buffers received as a parameter with the callbacks in the MAudioDataSupplier interface.

Member Functions Documentation

BufferFilled(CMMFBuffer *)

TInt BufferFilled ( CMMFBuffer * aBuffer ) [pure virtual]

Indicates that a buffer received from this buffer source has been filled with audio data.

Parameters

CMMFBuffer * aBuffer the buffer that has been filled.

BuffersDiscarded()

TInt BuffersDiscarded ( ) [pure virtual]

Acknowledges the call to MMMFAudioDataSupplier::DiscardBuffers() .

A DiscardBuffers() callback will be issued to MMMFAudioDataSupplier to request that any requested buffers have been discarded. This call acknowledges that the data supplier has stopped using the buffers, and returns their control to the framework proper

SetDataSupplier(MMMFAudioDataSupplier &)

TInt SetDataSupplier ( MMMFAudioDataSupplier & aSupplier ) [pure virtual]

Initializes the source for using aSupplier as a data supplier.

The source must be initialized before it is attached to a stream.

Parameters

MMMFAudioDataSupplier & aSupplier a reference to the data supplier which will provide the audio data by filling the buffers received with the callbacks.