SFML community forums
General => Feature requests => Topic started by: fer_t on February 22, 2016, 02:33:30 am
-
Hi,
It would be great if sfml would support opus as audio format.
Opus is a free / open audio format and at the moment the codec with the
best quality per bitrate, at least for low bitrates (< 100kb/s) but still good at higher bitrates.
It was developed to replace speex and gets now more and more used for VoIP applications,
because it provides very low delay (see: wikipedia (https://commons.wikimedia.org/wiki/File:Opus_bitrate%2Blatency_comparison.png)).
But it provides also better compression then vorbis or mp3 / aac and most other lossy codecs,
with better compression I mean better quality / bitrate, for a comparison see:
(https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Opus_quality_comparison.svg/400px-Opus_quality_comparison.svg.png)
I personally use it for all my audio files, because I do not need loss less audio in my games.
And especially voice, which is often used in games, can be compressed at very low bitrates without noticeable quality loss ( <96kb/s).
Yesterday I merged my custom changes into a sfml fork, so you can try it your self:
https://github.com/susnux/SFML/tree/feature/opus (https://github.com/susnux/SFML/tree/feature/opus)
Feedback is very welcome :-)
-
It's fun how they chose the exact same API as libvorbis. This makes the implementation is a lot easier.
-
Any plans to merge this feature?
-
We are all busy, but if a proper PR is submitted, I'm sure it can be integrated soon.
-
Looks like OP is working on it (https://github.com/susnux/SFML/commits/feature/opus). So he may be planning on submitting a PR.