AudioQueue does not output any sound

后端 未结 1 2003
失恋的感觉
失恋的感觉 2020-12-18 11:00

I have trouble getting sound output on my iPhone experiment and I\'m out of ideas.

Here is my callback to fill the Audio Queue buffer

void AudioOutpu         


        
相关标签:
1条回答
  • 2020-12-18 11:51

    I usually use 3 buffers. You need at least 2 because as one gets played, the other one is filled by your code. If you have only one, there's not enough time to fill the same buffer and re-enqueue it and have playback be seamless. So it probably just stops your queue because it ran out of buffers.

    0 讨论(0)
提交回复
热议问题