如何使用 Cocoa 或其他东西在 Mac OS X 10.6 上同时使用 USB 扬声器和内置音频扬声器?

发布于 2024-08-15 17:56:23 字数 175 浏览 1 评论 0原文

如何使用 Cocoa 或其他东西在 Mac OS X 10.6 上同时使用 USB 扬声器和内置音频扬声器?

我想在 Mac OS X 10.6 上同时使用内置扬声器和 USB 扬声器。

我想在这些扬声器上播放不同的文件(我不想在两个扬声器上播放相同的文件)。

可以使用可可或其他东西吗?

How to use a USB speaker and built-in audio speakers simultaneously on Mac OS X 10.6 using Cocoa or anything else?

I want to use the built-in speakers and USB speakers simultaneously on Mac OS X 10.6.

I want to play different files on these (I do not want to play same file on both speakers).

Is is possible using Cocoa or anything else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

莫多说 2024-08-22 17:56:23

以编程方式,可以使用像 portaudio 这样的库 - 您打开两个不同的流(使用 Pa_OpenStream),并且您会得到两个不同的回调用于注入音频数据。

我确信使用 Core Audio 也是可能的,但那更复杂。

Programmatically it's possible using a library like portaudio - you open two different streams (using Pa_OpenStream) and you get two different callbacks that you use to inject audio data.

I'm sure it's possible using Core Audio too, but that's more complicated.

一口甜 2024-08-22 17:56:23

Rogue Amoeba 的 Airfoil 可以将音频流从单个应用程序重定向到机场快线、将其他音频留给系统扬声器。我没有 USB 音频设备来测试您的特定应用程序,但您可以免费试用。

Rogue Amoeba's Airfoil can redirect the audio stream from a single application to, f/ex, an Airport Express, leaving other audio to go the system speakers. I don't have a USB audio device to test your specific application, but you can try it free.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文