Hello,
In my project I need to be able to play "real time" sound (approx. 1100 samples per frame, at approx. 30fps). I tried the SoundStream class you provide ; it works, but the onGetData is not fast enough because I need to create a fifo queue and push/pop my samples while waiting for the stream to require them. The result is a late audio compared to the video (it's supposed to be syncd) ; from time to time there is a little throttle and it gets late, the more I play the more it's late.
So here is my question : how could I fix that ? I think that I need to edit SoundStream to make it a push-based system instead of a pull-based. Instead of requiring the chunks every times needed, it lets me fill the buffers on my own (at each frame). There would be no more need for a fifo queue and I think it would be fast enough and more synchronized.
Could you help me ?
Thanks !