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.
Public Member Functions | |
---|---|
TInt | BufferEmptied ( CMMFBuffer *) |
TInt | BuffersDiscarded () |
TInt | SetDataConsumer ( MMMFAudioDataConsumer &) |
TInt | BufferEmptied | ( | CMMFBuffer * | aBuffer | ) | [pure virtual] |
Indicates that the audio data has been read from a buffer received from this buffer sink.
CMMFBuffer * aBuffer | the buffer that has been consumed. |
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.
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.
MMMFAudioDataConsumer & aConsumer | a reference to the data consumer which will be responsible for reading the audio data from the buffers provided by this sink. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.