class Audio::PushAudioOutputStreamCallback
An interface that defines callback methods for an audio output stream. Updated in version 1.7.0.
Derive from this class and implement its function to provide your own data as an audio output stream.
Syntax: public inline virtual ~PushAudioOutputStreamCallback ( );
Destructor, does nothing.
Syntax: public int Write ( uint8_t * dataBuffer , uint32_t size );
This function is called to synchronously put data to the audio stream.
dataBuffer
The pointer to the buffer from which to consume the audio data.size
The size of the buffer.
The number of bytes consumed from the buffer
Syntax: public void Close ( );
This function is called to close the audio stream.