SDL_sound icon indicating copy to clipboard operation
SDL_sound copied to clipboard

Add Opus support

Open berolinux opened this issue 4 years ago • 8 comments

SDL_sound currently supports Vorbis files -- but Xiph (maintainers of Vorbis) have deprecated Vorbis in favor of Opus back in 2013. It would be nice to have Opus support in SDL_sound as well.

berolinux avatar Aug 09 '21 01:08 berolinux

As far as I know, @icculus is trying to avoid external library dependencies in SDL_sound-2.0: if you know of an opus decoder that is both mature and also suitably licensed for embedding in SDL_sound - such as those so-called one-header libs, please let us know.

sezero avatar Aug 18 '21 13:08 sezero

https://nothings.org/stb/stb_opus.html

icculus avatar Mar 24 '22 20:03 icculus

A decoder implementation using libopus would not be accepted/viable?

feliwir avatar Mar 29 '22 08:03 feliwir

A decoder implementation using libopus would not be accepted/viable?

We are avoiding external dependencies beyond SDL2.

icculus avatar Apr 07 '22 19:04 icculus

Close this one?

sezero avatar Apr 14 '22 14:04 sezero

Well, this is still a valid issue. Maybe there will be a single file opus decoder at some day (not necessarly stb_opus), which can be used.

feliwir avatar Apr 14 '22 14:04 feliwir

Yeah, leave it open for now, but it's not going to move any time soon.

icculus avatar Apr 14 '22 16:04 icculus

Can't there be an exception in this case with the option of accepting an external dependency for libopus? The license at least looks alright: https://github.com/xiph/opus/blob/main/COPYING.

ericoporto avatar Mar 30 '24 10:03 ericoporto