PullAudioOutputStream Class
Represents memory backed pull audio output stream used for custom audio output.
- Inheritance
-
PullAudioOutputStream
Constructor
PullAudioOutputStream(handle: c_void_p | None = None)
Parameters
Name | Description |
---|---|
handle
|
Default value: None
|
Methods
read |
Reads the audio data from stream and fill into the given buffer. The maximal number of bytes to be read is determined by the size of audio_buffer. If there is no data immediately available, ReadData() blocks until the next data becomes available. |
read
Reads the audio data from stream and fill into the given buffer. The maximal number of bytes to be read is determined by the size of audio_buffer. If there is no data immediately available, ReadData() blocks until the next data becomes available.
read(audio_buffer: bytes) -> int
Parameters
Name | Description |
---|---|
audio_buffer
Required
|
The buffer to receive the audio data. |
Returns
Type | Description |
---|---|
The number of bytes filled, or 0 in case the stream hits its end and there is no more data available. |
Azure SDK for Python