是否有可能访问原始的iphone音频输出? [英] Is it possible to access raw iphone audio output?

查看:150
本文介绍了是否有可能访问原始的iphone音频输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能获得来自iPhone音频输出原始的PCM数据?

Is it possible access raw PCM data from the iphone audio output?

我知道我可以嵌入MP3和使用AudioUnit。但是,如果用户正在播放音乐,从他们的iTunes资料库的背景下,是有可能访问音频数据?

I know I can embed an MP3 and use AudioUnit. But if the user is playing music in the background from their itunes library, is it possible to access that audio data?

这是一个应用程序,显示的视觉效果,这反应了音乐。

This is for an app that shows visual effects, which react to the music.

据我所知,这是不可能的,但缺乏在所有发现的任何信息,而不是实际的确认,它不能做的只是

From what I can tell, it isn't possible, but that's just from lack of finding any information at all, rather than actual confirmation that it can't be done.

如果这是不可能从iPod的访问音频流,是有可能从媒体播放器访问一个应用内的原始音频输出,或者是pretty多不允许访问从原始音频数据在所有的iTunes资料库?

If it isn't possible to access the audio stream from the ipod, is it possible to access raw audio output from the Media Player inside an app, or is pretty much not permitted to access raw audio data from the itunes library at all?

修改:我发现这个问题:<一href=\"http://stackoverflow.com/questions/7340947/ios-access-output-audio-from-background-program?rq=1\">iOS - 从后台程序,该说我不能从后台程序访问音频接入输出音频。但是,它可以从iTunes资料库中获得的音频数据,如果我发挥它里面的应用程序?

EDIT: I found this question: iOS - Access output audio from background program, which say I can't access the audio from a background app. But is it possible to get the audio data from the itunes library if I play it inside the app?

推荐答案

我忙编码相似,据东西,因为我知道一个AUGraph需要,硬件从录像机拉动。你将不得不从轨道与苹果公司的MPMediaPickerViewController选择的用户得到MPMediaItem的URL。然后,使用核心音频的URL。核心-Audio是一个野兽。

I am busy coding something similar and as far as I know an AUGraph is needed, the hardware pulling from the recorder. You will have to get the URL of the MPMediaItem from the track the user selected with Apple's MPMediaPickerViewController. Then use the URL with Core-Audio. Core-Audio is a beast.

这篇关于是否有可能访问原始的iphone音频输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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