AUGraph弃用是否意味着不再有音频渲染回调? [英] Does AUGraph deprecation means no more audio render callbacks?

查看:270
本文介绍了AUGraph弃用是否意味着不再有音频渲染回调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有详细渲染回调的应用程序,我怀疑它可以与AVAudioEngine一起使用.

I have an app with an elaborated render callback that I doubt could do with AVAudioEngine.

是否可以将我的AUGraph渲染回调(带有多条总线)与AVAudioEngine一起使用?

Anyway to use my AUGraph render callback ( with multiple buses ) with AVAudioEngine ?

任何示例代码吗?

推荐答案

音频单元API 不建议弃用,仅在其之上构建的AUGraph是不建议使用的.

The Audio Unit API is not deprecated, only AUGraph which is presumably built on top of it.

使用 AudioUnitSetProperty kAudioUnitProperty_MakeConnection AudioUnitConnection 结构.

使用 AudioOutputUnitStart 启动和停止输出单元 AudioOutputUnitStop .

Start and stop your output unit with AudioOutputUnitStart and AudioOutputUnitStop.

使用 AudioUnitSetProperty kAudioUnitProperty_SetRenderCallback以及 AURenderCallbackStruct

除了一点点簿记和更简单的连接语法外,AUGraph确实没有给您带来太多好处.

There's really not all that much that AUGraph gives you other than a little bookkeeping and a simpler connection syntax.

这篇关于AUGraph弃用是否意味着不再有音频渲染回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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