MMMFBufferSink Class Reference

class MMMFBufferSink

Buffer sink is used for receiving the audio data in buffers outside the audio process.

The type of the actual 'physical' sink can be for example a file or a socket or the data could also be simple analysed and then discarded. Nevertheless, the client (the MAudioDataConsumer) is responsible for writing the data to its final sink while reading it from the buffers received as a parameter with the callbacks in the MAudioDataConsumer interface.

Member Functions Documentation

BufferEmptied(CMMFBuffer *)

TInt BufferEmptied(CMMFBuffer *aBuffer)[pure virtual]

Indicates that the audio data has been read from a buffer received from this buffer sink.

Parameters

CMMFBuffer * aBufferthe buffer that has been consumed.

BuffersDiscarded()

TInt BuffersDiscarded()[pure virtual]

Called by the client to acknowledgement the processing of DiscardBuffers() to indicate that control of any buffer previously passed to the client. (by BufferToBeEmptied()) returns to the framework proper.

SetDataConsumer(MMMFAudioDataConsumer &)

TInt SetDataConsumer(MMMFAudioDataConsumer &aConsumer)[pure virtual]

Initializes the sink for using aConsumer as a data consumer.

The sink must be initialized before it is attahced to a stream.

Parameters

MMMFAudioDataConsumer & aConsumera reference to the data consumer which will be responsible for reading the audio data from the buffers provided by this sink.