捕获MAC声音输出 [英] Capture sound output on mac

查看:428
本文介绍了捕获MAC声音输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的端口从屏幕窗口Mac和它的一个特点是反应系统的声音输出。在Windows上,很容易使用直接的声音,但我无法找到MAC捕获声音输出的例子。是否有可能甚至可以不用写类似的内核扩展?使用闪光灯它也很容易 - 它甚至给 computeSpectrum 方法来获得原始数据,甚至FFT变换后的数据

I am trying to port my screensaver from windows to mac and one of its features was reacting on system sound output. On windows it was easy using Direct Sound, but I can't find any example of capturing sound output on mac. Is it possible even possible without writing something like kernel extension? Using flash it is also very easy — it even gives computeSpectrum method to get raw data or even fft transformed data.

这是我已经发现使用 Soundflower 或自己的内核扩展。但我不认为要求安装单独的程序或使用内核扩展是一个好办法。

All programs that I have already found use Soundflower or their own kernel extension. But I don't think that asking to install separate program or using kernel extension is a good way.

推荐答案

有一件事可以做,考虑到Soundflower是开源的,是来看看他们是怎么做的。你不能复制和放大器;粘贴GPL code,但你肯定可以学习使用的技术,并创建自己的解决方案(你指出正确的方向)。

One thing you can do, considering that Soundflower is open source, is take a look at how they did it. You can't copy & paste GPL code, but you can surely study the techniques used and create your own solution (point you in the right direction).

您不会觉得苹果是非常有用的在这里。声音捕获,以这种方式,可用于各种恶意目的。我甚至不知道如果核心音频让你做这没有黑客。在任何情况下,你有你想要完成什么工作的实施。我会好好利用这个优势。

You won't find Apple being very helpful here. Sound capturing, in this manner, can be used for all kinds of nefarious purposes. I'm not even sure if Core Audio lets you do this without hacks. In any case, you have a working implementation of what you're trying to accomplish. I'd take advantage of it.

这篇关于捕获MAC声音输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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