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

Author Topic: Does SFML Audio support float format Stream?  (Read 4899 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: 32498
    • 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: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • 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?
Back to C++ gamedev with SFML in May 2023

 

anything