iPhone 从内置应用程序读取音频
我正在尝试对我的应用程序实施音频分析(即用于可视化工具或其他东西)。使用音频队列框架,我可以将设备后台播放的itunes的输出读取到AudioQueueLevelMeterState变量中吗?一旦我有了这个变量,我就可以做我需要做的一切,我只是似乎不知道如何获取该信息。我看过的所有示例都是从应用程序内部的音频或麦克风输入读取的。为了让我的应用程序尽可能简单,我更愿意让用户在 iTunes 中设置他们想要的任何音乐,并在加载我的应用程序时让它在后台播放...
如果这个问题已经得到很多人的回答,请原谅我次,但我只是需要一个好的线索来了解从哪里开始研究这个解决方案。谢谢...
I'm trying to implement audio analysis to my app (ie for a visualizer or something). Using the Audio Queue framework, can I read the output of itunes playing in the background of the device into a AudioQueueLevelMeterState variable? Once I have that variable, I can do everything I need to do, I just can't seem to figure out how to get that information. All the samples I've looked at read from either audio internal to your app, or from mic input. To keep my app as simple as possible, I'd prefer to let the user setup whatever music they want in itunes and just have it playing in the background when they load my app...
Forgive me if this question has already been answered many times, but I simply need a good lead on where to begin researching this solution. Thank You...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iPhone 应用程序无法访问库存设备上任何其他应用程序的音频。您需要将 iTunes 的音频文件数据读取到您自己的应用程序中并自行播放。
An iPhone app doesn't have access to audio from any other app on stock devices. You need to read the iTune's audio file data into your own app and play it yourself.