SFML community forums

Help => Audio => Topic started by: kileyi on January 10, 2019, 04:20:19 pm

Title: Does SFML Audio support float format Stream?
Post by: kileyi 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?
Title: Re: Does SFML Audio support float format Stream?
Post by: Laurent on January 10, 2019, 04:29:53 pm
The answers are no and no. Sorry.
Title: Re: Does SFML Audio support float format Stream?
Post by: FRex 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?