[Suggeston] Replace libvorbis with stb_vorbis
One of the goal of FluidLite is to become a lightweight replacement for Fluidsynth. As vorbis format is only needed for sf3 support, using libvorbis+libogg as additional library will make FluidLite become heavier. By replacing libvorbis with stb_vorbis it will get benefits such as:
- stb_vorbis is more lightweight than libvorbis;
- stb_vorbis has lesser dependencies than libvorbis (it only need itself without libogg);
- stb_vorbis is licensed under public domain.
I don't have any programming skills so I am really sorry if I cannot help much other than giving suggestion.
Best regards, RyanBram
Link https://nothings.org/stb_vorbis/ https://github.com/nothings/stb
Might make sense to make SF3 support totally optional so vorbis isn't required at all? Then there will be zero deps?
I don't know. There is a good chance that a given project who would benefit from fluidsynth->fluidlite is already dealing with audio in various formats, and as such probably already needs libvorbis/libogg.
I think so too, which is why having it completely optional would be the nicest option IMO.
I added support for stb_vorbis in my fork. Also #17 is fixed.
Because my PR was merged, can we close this issue?