AudioQueue内存中播放示例 [英] AudioQueue in-memory playback example

查看:136
本文介绍了AudioQueue内存中播放示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道使用从内存源播放的AudioQueue的任何示例?

Does anybody know of any examples using AudioQueue that play from an in-memory source?

我可以找到的所有示例都来自文件(使用AudioFileReadPackets),但是我的具体情况我自己实时生成数据,所以理想情况下,我想自己排队数据,而不是使用回调将其从文件中剔除。

All the examples I can find play from files (using AudioFileReadPackets) but in my particular case I am generating the data myself in realtime so ideally, I want to enqueue the data myself rather than sucking it out of a file using the callback.

任何帮助非常感谢。

推荐答案

我知道一个使用音频单元的例子,你可以适应,因为回调很相似,试试< a href =http://sites.google.com/site/iphonecoreaudiodevelopment/remoteio-playback =nofollow noreferrer>此处

i know of an example using audio units that you could adapt, as the callbacks are very similiar, try here

这篇关于AudioQueue内存中播放示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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