简体   繁体   English

使用 Core Audio 从默认线路输出声音设备中提取浮点数

[英]Using Core Audio to extract float from default line out sound device

I am in need for some assistance/guidance with using Core Audio to extract floats from the sound out device.在使用 Core Audio 从声音输出设备中提取浮点数时,我需要一些帮助/指导。 I have read similar posts regarding the extraction of floats from AIFF.我读过关于从 AIFF 提取花车的类似帖子。 My end goal is something along the lines of:我的最终目标是:

  • iTunes is playing a song iTunes 正在播放歌曲

  • C/C++ program using Core Audio extracts float values from the sound device (in real-time)使用 Core Audio 的 C/C++ 程序从声音设备中提取浮点值(实时)

  • Use resulting float vector to perform Fourier Transformation on a array of floats (probably using vDSP from Apple's Accelerate Library) - This part I have somewhat figured out:)使用生成的浮点向量对浮点数组执行傅里叶变换(可能使用 Apple Accelerate 库中的 vDSP)——这部分我已经有点想通了:)

Note: I am developing on Mac OS X (10.6+).注意:我正在 Mac OS X (10.6+) 上开发。

Any help will be much appreciated.任何帮助都感激不尽。

This question comes up frequently on the Core Audio mailing list.这个问题经常出现在 Core Audio 邮件列表中。 There is no easy way to accomplish what you want to do.没有简单的方法可以完成您想做的事情。 See:看:

http://lists.apple.com/archives/coreaudio-api/2007/Jul/msg00066.html http://lists.apple.com/archives/coreaudio-api/2009/Nov/msg00308.html http://lists.apple.com/archives/coreaudio-api/2007/Jul/msg00066.html http://lists.apple.com/archives/coreaudio-api/2009/Nov/msg00308.html

You'll need to write either a kext or a user-land driver.您需要编写一个 kext 或一个用户级驱动程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM