Share via


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.

Members

~PushAudioOutputStreamCallback

Syntax: public inline virtual ~PushAudioOutputStreamCallback ( );

Destructor, does nothing.

Write

Syntax: public int Write ( uint8_t * dataBuffer , uint32_t size );

This function is called to synchronously put data to the audio stream.

Parameters

  • dataBuffer The pointer to the buffer from which to consume the audio data.

  • size The size of the buffer.

Returns

The number of bytes consumed from the buffer

Close

Syntax: public void Close ( );

This function is called to close the audio stream.

Returns