icculus / SDL_sound

An abstract soundfile decoder.
https://icculus.org/SDL_sound/
Other
146 stars 27 forks source link

Support using libogg from Xiph as alternative ogg decoder #101

Open ericoporto opened 5 days ago

ericoporto commented 5 days ago

It would be nice if it was possible to use libogg from Xiph instead of the internal ogg decoder to avoid the issues it currently has. This is similar to what is possible currently with SDL_Mixer.

sezero commented 5 days ago

The stable-1.0 branch has that already, and it can already be configured to build against SDL2.0 instead of SDL1.2.

ericoporto commented 5 days ago

The current main is already ported to SDL3, so going back to that sounds like a bad idea.

Plus all the other formats mostly works fine, it's just ogg that keeps giving issues.

sezero commented 5 days ago

The current main is already ported to SDL3,

Really? Where?

ericoporto commented 5 days ago

Here: https://github.com/Astrabit-ST/SDL3_sound

But other approach would be some plugin like way where I could override a decoder with one of my own or just add a decoder if I implement an API and if the file format matches an existing one then it would use my decoder instead of the built-in one.