Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Add support for Opus audio  (Read 5581 times)

0 Members and 1 Guest are viewing this topic.

fer_t

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Add support for Opus audio
« 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).
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:



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

Feedback is very welcome :-)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Add support for Opus audio
« Reply #1 on: February 22, 2016, 09:20:40 am »
It's fun how they chose the exact same API as libvorbis. This makes the implementation is a lot easier.
Laurent Gomila - SFML developer

Eremiell

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Add support for Opus audio
« Reply #2 on: April 01, 2016, 05:21:46 pm »
Any plans to merge this feature?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Add support for Opus audio
« Reply #3 on: April 01, 2016, 05:27:33 pm »
We are all busy, but if a proper PR is submitted, I'm sure it can be integrated soon.
Laurent Gomila - SFML developer

dabbertorres

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • website/blog
Re: Add support for Opus audio
« Reply #4 on: April 01, 2016, 08:00:24 pm »
Looks like OP is working on it. So he may be planning on submitting a PR.

 

anything