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 *)

void BufferToBeEmptied ( 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 * aSink a pointer to the sink providing the buffer.
CMMFBuffer * aBuffer a pointer to the buffer to empty.

DiscardBuffers(MMMFBufferSink *)

void DiscardBuffers ( 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