拦截OS X中的全局音频输出? [英] Intercept global audio output in os x?

查看:129
本文介绍了拦截OS X中的全局音频输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OS X中,有没有人碰到过拦截(和修改)音频的方法?我意识到我可以构建一个驱动程序并更改音频设置以在那里输出,但是我想做的是使用现有的音频输出并在流到达所选设备之前对其进行操作,而无需驱动程序重定向技巧.我还想做相反的事情,并在麦克风流到达管道的其余部分之前挂上它.

Has anyone come across a way to intercept (and modify) audio in OS X before it reaches the speakers? I realize I can build a driver and change the audio settings to output there, but what I would like to do is use the existing audio output and manipulate the stream before it reaches the chosen device, without the driver redirect trick. I'd also like to do the inverse and hook the microphone stream before it hits the rest of the pipeline.

这有可能吗?

推荐答案

CoreAudio驱动程序"有两种,内核级和用户空间.从您的问题出发,目前尚不清楚是要避免只使用内核级驱动程序,还是要避免使用任何一种.

There are two kinds of CoreAudio "drivers", kernel-level and user-space. From your question it isn't clear whether you want to avoid kernel-level drivers only or either type.

如果您愿意编写一个用户空间驱动程序(也称为HAL插件),可用于拦截系统级音频输出.

If you're willing to write a user-space driver, also known as a HAL plugin, that can be used to intercept system level audio output.

看看Apple的示例

Take a look at Apple's examples here

这篇关于拦截OS X中的全局音频输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆