The new SDL3 audio stream callback question

I have my own audio mixer that used to work fine using the old callback method. I followed the example in the but can’t get it to work.

The problem I am having is that this new callback is always requesting 0 bytes. When I use SDL_PutAudioStreamData to add audio data I do get sound but but the callback is continually requesting 0 bytes and sound played in not automatically being removed from the audio stream as it plays? What am I missing?

How exactly would I emulate the old callback behavior?

Try the latest code? @icculus just fixed a bug that was causing 0 byte callbacks on Windows.

1 Like

Yes, that fixed it. Everything is functioning as expected now. Thanks.

1 Like

Hi Slouken
Well I have some questions about SDL audio stream.
Could you help me?

Don’t ask to ask, just ask.