连续使用远程io进行录制并使用AVPlayer连续播放ipod库音频 [英] Using remote io for recording and AVPlayer for playing ipod library audio at the same time continuously

查看:114
本文介绍了连续使用远程io进行录制并使用AVPlayer连续播放ipod库音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以连续使用远程io进行录制并使用AVPlayer连续播放iPod库的音频吗?

Can I use remote io for recording and AVPlayer for playing iPod library audio at the same time continuously?

我尝试过,但返回的错误是:

I tried but the error returned was:

AURemoteIO::ChangeHardwareFormats: error -10875.

推荐答案

是可以的.我建议下载此示例应用程序: http://zerokidz.com/audiograph/Home.html audioGraph .然后在启用麦克风的同时尝试使用AVPlayer播放音频文件.我发现这是可能的,但这取决于您要使用AVPlayer播放的音频的文件格式.

Yes it is possible. I suggest downloading this example app: http://zerokidz.com/audiograph/Home.html audioGraph. Then attempting to play an audio file with AVPlayer while the mic is enabled. I found that it is possible, but it depends on the file format of audio you want to play with AVPlayer.

例如,我发现如果您在44800hz处有一个InputCallback并尝试使用44100hz的AVPlayer播放音频文件,您将开始在InputCallback中收到错误.但是,如果您播放一个48000hz文件,它将可以正常工作.

For example, I found that if you have an InputCallback at 44800hz and attempt to play an audiofile with AVPlayer that is 44100hz, you will start receiving errors in the InputCallback. But if you play an 48000hz file, it will work fine.

这篇关于连续使用远程io进行录制并使用AVPlayer连续播放ipod库音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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