AudioQueue in-memory playback example

南笙酒味 提交于 2019-12-03 08:27:38

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

rcw3

The Audio Queue Services Programming Guide should give you the details you need but obviously is a bit lax on the specific example you are looking for. You just need to push the in-memory audio data through the output queue instead of the PCM data from the file via AudioFileReadPackets.

I found a reasonable example of sound synthesis in the AudioQueue player callback in another stackoverflow question.

SpeakHere Example may be the best example for you. The example records sound from device and play it. You can find this example in the Apple sample site.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!