Mac OS X中的麦克风和扬声器是哪个/dev/...(设备)? [英] Which /dev/... (devices) are the microphone and speaker in Mac OS X?

查看:353
本文介绍了Mac OS X中的麦克风和扬声器是哪个/dev/...(设备)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MacBook Alluminium,我想以RAW格式捕获麦克风并以标准方式通过扬声器输出RAW音频,即使用具有标准的终端 Unix命令并使用标准/dev/???设备.

I have a MacBook Alluminium and I want to capture the microphone in a RAW format and output a RAW audio through the speakers, in a standard way, i.e., using the terminal with standard Unix commands and using the standard /dev/??? devices.

所以,这个问题是

  • 麦克风和扬声器是哪个设备?两者都应该以/dev/...

  • Which devices are the microphone and speakers? Those both should start with /dev/...

它们是内置的还是外部的,是否有所不同?哪个? (此外,他们必须以/dev/...开头)

Are they different if they are built-in or external? Which ones? (Also they have to start with /dev/...)

如果您还知道unix命令,以打印麦克风输入并为扬声器写入输出,那将是额外的加分! :)(我想从麦克风中捕获它,对其进行修改-我得到它-并将其修改后发送给扬声器)

If you know also the unix commands to print the microphone input and to write the output for speakers that would be extra points! :) (I want to capture it from mic, modify it -I got it-, and send it modified to speakers)

如果您还知道OSX的组装说明,那将是完美信息! 但主要问题是项目符号列表中的哪些问题.

If you know also the Assembly instructions for OSX that would be the perfection! But the main questions are which are in the bulleted list.

谢谢!

推荐答案

正如@duskwuff所说,尝试使用OS X上的/dev设备访问声音设备可能会没有任何乐趣.

As @duskwuff says, you probably won't have any joy trying to access sound devices using /dev devices on OS X.

如果如您在上面的评论中所述,如果您的目标是跨平台可移植性,那么 PortAudio 可能是解决方案.

If, as you say in your comment above, your goal is cross-platform portability then perhaps PortAudio might be a solution.

从他们的主页上:

PortAudio是一个免费的,跨平台的开源音频I/O库. 它使您可以用"C"或C ++编写简单的音频程序, 可以在许多平台上编译并运行,包括Windows,Macintosh OS X, 和Unix(OSS/ALSA).旨在促进音频的交换 不同平台上的开发人员之间的软件.许多应用 使用PortAudio进行音频I/O.

PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.

在OS X上,我相信他们使用Core Audio,在Linux上,他们使用OSS/ALSA.

On OS X I believe they use Core Audio and on Linux they use OSS/ALSA.

这篇关于Mac OS X中的麦克风和扬声器是哪个/dev/...(设备)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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