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

Author Topic: Does SFML Audio support float format Stream?  (Read 1085 times)

0 Members and 1 Guest are viewing this topic.

kileyi

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Does SFML Audio support float format Stream?
« on: January 10, 2019, 04:20:19 pm »
Give a quick look at source code,seems there is only int16(short) format,is it possible to use stream format like SDL2 does,fill in some struct and choose which format to use for audiocallback?

Right now I want to add reverb to audio like music or sound.I have get some reverb work on SDL2.
Base on float format[-1, +1],it is possible to convert from float to short,but could be a lot of work to do.
And I may add more audio effect like filter, compressor and so on.And they are all float format.
If I manually do these, time will be wasted meaninglessly.

And one more question,let's say I solve this format problem.Does SFML Audio have some ability to modify to final master audio out?Let's say I want to add reverb to all sound,but I don't want to apply to each of them,I just want to add reverb to the final master audio data,is it possible to do so?
« Last Edit: January 10, 2019, 04:22:51 pm by kileyi »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 31941
    • View Profile
    • SFML's website
    • Email
Re: Does SFML Audio support float format Stream?
« Reply #1 on: January 10, 2019, 04:29:53 pm »
The answers are no and no. Sorry.
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1783
    • View Profile
    • My GitHub page
    • Email
Re: Does SFML Audio support float format Stream?
« Reply #2 on: January 10, 2019, 09:12:19 pm »
So apparently this is OpenAL limitation as well, but there are (OS specific/not on all OSes?) extensions to OpenAL that have float?
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi