libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.
zlib License
434 stars 146 forks source link

Use stb_vorbis instead of libogg and libvorbis #329

Closed VinnyVicious closed 2 years ago

VinnyVicious commented 3 years ago

Both libogg and libvorbis are huge dependencies and are complex to build across platforms, specially since their bundled CMakeLists.txt are obsolete and rarely updated. No compatibility with other popular build systems or package managers either.

stb_vorbis is a much more portable and would be a great addition to SDL_Mixer.

Wohlstand commented 2 years ago

Some time ago I made the use of stb_vorbis on my form (MixerX) side:

Note: At me the modified version of stb_vorbis, I made a lot of changes on it, because in its original form it doesn't properly work as a part of Mixer and fails to build on some platforms:

P.S. When using other codes that require libogg (like libFLAC and Opus), it still be used and linked separately.

slouken commented 2 years ago

Added, thanks!

VinnyVicious commented 2 years ago

Thank you!

slouken commented 2 years ago

You're welcome!