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.
Public Member Functions | |
---|---|
TInt | BufferFilled ( CMMFBuffer *) |
TInt | BuffersDiscarded () |
TInt | SetDataSupplier ( MMMFAudioDataSupplier &) |
TInt | BufferFilled | ( | CMMFBuffer * | aBuffer | ) | [pure virtual] |
Indicates that a buffer received from this buffer source has been filled with audio data.
CMMFBuffer * aBuffer | the buffer that has been filled. |
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
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.
MMMFAudioDataSupplier & aSupplier | a reference to the data supplier which will provide the audio data by filling the buffers received with the callbacks. |
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.