mackron / dr_libs

Audio decoding libraries for C/C++, each in a single source file.
Other
1.24k stars 205 forks source link

Make results consistent when trying to seek beyond the end of sounds. #251

Open mackron opened 1 year ago

mackron commented 1 year ago

The various decoders in this repository are inconsistent when seeking beyond the end of the file. In some cases it will result in an errors, whereas in other cases it will clamp to the end and return success.

All decoders need to be updated so that an error is returned when trying to seek beyond the end of the file.

Original report from miniaudio: https://github.com/mackron/miniaudio/issues/651