开发者

Audio Queue buffer manipulation when paused

开发者 https://www.devze.com 2023-02-08 14:19 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消