MMMFAudioDataConsumer Class Reference

class MMMFAudioDataConsumer

An interface to a set of callback functions that a buffer sink client must implement.

Member Functions Documentation

BufferToBeEmptied(MMMFBufferSink *, CMMFBuffer *)

voidBufferToBeEmptied(MMMFBufferSink *aSink,
CMMFBuffer *aBuffer
)[pure virtual]

Provides a buffer with audio data to the client.

After reading the data from the buffer, the client must call MBufferSink::BufferEmptied() passing the buffer as a parameter.

Parameters

MMMFBufferSink * aSinka pointer to the sink providing the buffer.
CMMFBuffer * aBuffera pointer to the buffer to empty.

DiscardBuffers(MMMFBufferSink *)

voidDiscardBuffers(MMMFBufferSink *aSink)[pure virtual]

Indicates that any outstanding buffer requests are to be cancelled, so that control of those buffers returns to the framework. The client must call MMMFBufferSink::BuffersDiscarded() to acknowledge that this has taken place.

Parameters

MMMFBufferSink * aSink