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

拈花ヽ惹草 提交于 2019-12-11 16:05:29

问题


I am in need for some assistance/guidance with using Core Audio to extract floats from the sound out device. I have read similar posts regarding the extraction of floats from AIFF. My end goal is something along the lines of:

  • iTunes is playing a song

  • C/C++ program using Core Audio extracts float values from the sound device (in real-time)

  • 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 :)

Note: I am developing on Mac OS X (10.6+).

Any help will be much appreciated.


回答1:


This question comes up frequently on the Core Audio mailing list. 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

You'll need to write either a kext or a user-land driver.



来源:https://stackoverflow.com/questions/6287523/using-core-audio-to-extract-float-from-default-line-out-sound-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!