An interface that defines callback methods for an audio input stream.
Derive from this class and implement its function to provide your own data as an audio input stream.
public inline virtual ~PullAudioInputStreamCallback ( );
Destructor, does nothing.
public int Read ( uint8_t * dataBuffer , uint32_t size );
This function is called to synchronously get data from the audio stream. Note: The dataBuffer returned by Read() should not contain any audio header.
dataBufferThe pointer to the buffer to which to copy the audio data.
sizeThe size of the buffer.
The number of bytes copied into the buffer, or zero to indicate end of stream
public inline virtual SPXSTRING GetProperty ( PropertyId id );
This function is called to synchronously to get meta information associated to stream data, such as TimeStamp or UserId . Added in version 1.5.0.
idThe id of the property.
The value of the property.
public void Close ( );
This function is called to close the audio stream.