Audio Queue buffer manipulation when paused
I am wondering if there is a way to manipulate the audio buffer when the audio queue is paused. So the pseudo logic goes like this: 1. pause audio queue 2. manipulate the audio buffers in the queue except the one that is being handed to the callback function. 3. start the audio queue again
I notice the problem would be when I try to manipulate the audio buffer that is being decoded and fed to the device. So anyone has ever tried th开发者_运维问答is before?
I think this path will lead to pain and suffering, and one that could be simulated without breaking the paradigm that AudioQueue sets forth. The whole point of the queue is to feed buffers to a callback that you implement so you can manipulate each sample as you see fit before passing it down the chain.
Maybe if you can explain the context of what you're trying to accomplish, a more suitable solution could be offered.
精彩评论