You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to let decoders signal that they own a given sound file.
For example, the .WAV decoder might hit this legitimate failure case (if given a 24-bit audio file, which we don't yet support)...
BAIL_MACRO("WAV: Unsupported sample size.", 0);
But then SDL_sound will try other decoders, which appropriately fail because the file isn't .mp3/.voc/whatever, eventually setting the error message to "Sound format unsupported."
So what we need is a way for decoders to say "this is definitely a .WAV (or whatever) file, but I can't open it (i/o issue, corrupted, some unsupported thing)," so that SDL_sound can report a more meaningful error and also know to stop trying other decoders.
The text was updated successfully, but these errors were encountered:
What can be done here that would be easier is if you are deeper in the decoding and understanding of some header of the file format then it would raise some flag that says "yes I am the correct decoder" and from that point on it would both fail with more meaningful errors and not fallback to trying other decoders.
We need to let decoders signal that they own a given sound file.
For example, the .WAV decoder might hit this legitimate failure case (if given a 24-bit audio file, which we don't yet support)...
But then SDL_sound will try other decoders, which appropriately fail because the file isn't .mp3/.voc/whatever, eventually setting the error message to "Sound format unsupported."
So what we need is a way for decoders to say "this is definitely a .WAV (or whatever) file, but I can't open it (i/o issue, corrupted, some unsupported thing)," so that SDL_sound can report a more meaningful error and also know to stop trying other decoders.
The text was updated successfully, but these errors were encountered: