How to provide audio buffer to AudioQueue to play audio?
问题 In my application, I am receiving audio data in LinearPCM format, which I need to play. I am following iOS SpeakHere example. However I cannot get how and where I should provide a buffer to AudioQueue . Can anyone provide me a working example of playing audio buffer in iOS via AudioQueue ? 回答1: In the SpeakHere example playback is achieved using AudioQueue . In the set up of AudioQueue , a function is specified that will be called when the queue wants more data. You can see that in this