SDL_sound icon indicating copy to clipboard operation
SDL_sound copied to clipboard

Support using libogg from Xiph as alternative ogg decoder

Open ericoporto opened this issue 1 year ago • 4 comments

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.

ericoporto avatar Oct 11 '24 14:10 ericoporto

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

sezero avatar Oct 11 '24 14:10 sezero

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.

ericoporto avatar Oct 11 '24 15:10 ericoporto

The current main is already ported to SDL3,

Really? Where?

sezero avatar Oct 11 '24 15:10 sezero

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.

ericoporto avatar Oct 11 '24 15:10 ericoporto