问题描述
我们目前正在使用库进行VOIP通话,他们有自己的解决方案用于音频播放。但是,我们希望在我们自己的应用程序中显示Linphone输出的音频的可视化工具。有没有办法我们可以拦截这些数据(可能通过样本缓冲),以便在用户界面中绘制音频波/音量计?
We're currently using Linphone library to make VOIP calls and they have their own solution for audio playback. However, we would like to display a visualizer for the audio that Linphone is outputting from within our own app. Is there a way that we can intercept this data (maybe through sample buffering) in order to draw up audio waves/volume meter in the user interface?
AVAudioPlayer或AVPlayer是由于我们无法访问这些对象,因此无从谈起。是否有适用于AVAudioSession或CoreAudio的解决方案?
AVAudioPlayer or AVPlayer is out of the question since we do not have access to those objects. Is there a solution in place for AVAudioSession or in CoreAudio?
推荐答案
仅当音频输出应用程序使用Inter导出音频数据时-App-audio或Audiobus。否则,iOS安全沙箱将隐藏您应用的音频输出。
Only if the audio output app is exporting the audio data using Inter-App-audio or Audiobus. Otherwise the iOS security sandbox will hide that audio output from your app.
这篇关于有没有办法拦截你的应用程序中的音频输出,以显示在iOS上的音频可视化器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!