[haiku-development] Re: Considering the audio Mixer formats

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 7 Feb 2016 15:04:15 +0100


So IMO, the audio chain is badly in need of an overhaul!  Not sure
what my opinion on float-only is.  I can see that if you need wildly
different fader settings, float might have better characteristics,
but as it has to be integer for the soundcard, I'm not sure there'd
really be a  gain.  I should say, though, that the sources I mostly use
-- Csound and fluidsynth -- both generate float values.


Whatever the buffer size is, I don't see a problem to convert the Mixer
output back to int, it adds a so little latency that I don't care at all.
But if all audio is pratically being made in float, then we can think to
use this as our preferred format and to some degree, advantage this over
the others. Or at least, provide ways to configure Haiku to work in this
way, for example by having the possibility to force the Mixer to reject
something different than a certain format.

One interesting feature of the SRC library of my first post, is that it
includes a "fast-power-of-two" algorithm that may be a cool property to
have in the mixer.

Other related posts: