It's interesting that it's moved to single-file libraries for format support, because I think those libraries have effectively replaced it already. Having a single interface supporting multiple formats is a nice thing, though.
There are some disadvantages to these single header libraries, though they may very well be a non-issue for SDL_sound. As an example: I believe stb vorbis doesn’t support “gapless” playback that trims padded silence necessitated by lapped MDCT compression, and IIRC it also does not have sample-accurate fast seeking. This would make it challenging to implement loop points in streaming music using stb vorbis; even if you decode the entire stream into memory to get sample accurate seeking, you still need to compensate for the padded silence.
Truly depends on one’s use case and desired trade-offs.
TazeTSchnitzel|3 years ago
jchw|3 years ago
Truly depends on one’s use case and desired trade-offs.