开发者

PyAudio raise exception on buffer under/overflow

开发者 https://www.devze.com 2023-02-05 17:09 出处:网络
PyAudio is based on PortAudio. Is there anyway to detect a buffer under/overflow for writing/reading from an audio stream in 开发者_如何学PythonPyAudio?According to the documentation you can raise an

PyAudio is based on PortAudio. Is there anyway to detect a buffer under/overflow for writing/reading from an audio stream in 开发者_如何学PythonPyAudio?


According to the documentation you can raise an exception on underflow when doing a write on a Stream class:

Stream.write(self, frames, num_frames=None, exception_on_underflow=True)

0

精彩评论

暂无评论...
验证码 换一张
取 消