audio.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ewo-core 作者: earswideopen 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号