SDL Audio ConvertAudio fails, SDL_GetError empty


#1

Hey!
I’m trying to open a wav file and convert it. I’ve set everything up just like in the docs, but it’s failing, but without giving any error messages. Below is my code:
https://pastebin.com/U5mWzw8V
Thanks for any help!
Gorbit


#2

It didn’t fail, please see: https://wiki.libsdl.org/SDL_ConvertAudio

Function returns 0 on success and negative on failure.

Also, SDL_BuildAudioCvt returns 0 if conversion is not needed.