def callback(in_data, frame_count, time_info, status):
""" Audio callback of the hardware
This function is the callback (non-blocking) of the audio function and its
purpose is to connect the input to the output.
Returns:
input data
a bit at 0 in order to continue to deliver the buffers.
Todo:
This function should be renamed in order to have a better idea about
its purpose. It's here as well that the signal processing should be
done. It would be nice in the future to be able to load whatever
signal blocks we want and create a desired chain at startup (or even as
hot plug).
"""
return (in_data, pyaudio.paContinue)
评论列表
文章目录