Reply 480 of 1132, by AlexRK
Unfortunately SDL_Sound's FLAC and MP3 backends have their own issues beyond the seek and get duration calls. (see here for a similar FLAC attempt that Yesterplay80 added back in 2016 but had be backed out of the ECE build due to issues: FLAC support)
Here's a working and up-to-date patch if you're interested in FLAC support: AUDIO Patch supporting FLAC, Opus, and MP3 audio tracks
You also mentioned keeping dosbox simple and elegant, which this patch does by eliminating the need for libFLAC, libMp321, libVorbis, and libVorbisFile, resulting in a much smaller statically linked DOSBox binary.
Frankly, I'm presonally only interested in supporting the WAV format (ISO/WAV/CUE, to be exact). All my mixed-mode CDs dumped exactly in that format - because of the need for accurate copying of audio tracks (I use Exact Audio Copy for this). At present time I cant use my dumps to play in DOSBox directly - I need to turn them into BIN/CUE using special software.
As far as I understand, the WAV format has no additional issues besides Seek/Duration, and does not require additional external libraries.
In my humble opinion, support of the playback of individual tracks, along with support of the single image in the BIN/CUE format, looks quite organic and consistent - because it is, in fact, the same data, but presented in slightly different ways.
It should be noted that dosbox allows using the ISO/OGG/CUE format. But not ISO/WAV/CUE format. 🙁 It's a little weird I think.