PullAudioOutputStream Class
Represents memory backed pull audio output stream used for custom audio output.
- Inheritance
-
PullAudioOutputStream
Constructor
PullAudioOutputStream(stream_impl=None)
Parameters
- stream_impl
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
- audio_buffer
The buffer to receive the audio data.
Returns
The number of bytes filled, or 0 in case the stream hits its end and there is no more data available.
Feedback
Submit and view feedback for