Hello everybody.
I'm currently developing the sound engine for my game engine using SDL_mixer 2 and there is something I don't understand. There is a function called Mix_OpenAudio which initializes the mixer and accepts a few arguments. One of those arguments is called format, and it can take these values. My sound knowledge is almost none, so bear with me.
As far as I understand this, format tells SDL how to parse the sounds it's given to play. I tried playing an SFX which was in 32-bit float format while passing different format values to Mix_OpenAudio and the sound played the same every time. Although I might have thought it played the same, as it was a quick *whoosh* SFX. If I have an RGB image and I parse it as BGR, it won't appear the same. Shouldn't this happen with sound as well?
My question is, do these values matter? Should I give the user of my engine the ability to use all the formats listed or can I safely omit some?
Thank you.