[haiku-development] Re: Explain the Audio Mixer Setup options of Media preferences

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 21 Jan 2022 08:52:55 +0000

* Use non linear gain sliders (like BeOS R5) (default: on)
(Can we remove this option and just go with/without it?)

This one is only about the behavior of volume sliders, probably could
be removed (no one wants the sliders to be linear)


* Display balance control for stereo connections (default: off)
(I know what this does. Not a very useful option IMO...)

Useful if you need to adjust balance for something. If we remove it
we should probably make it on by default?

* Resampling algorithm 'Linear interpolation' or 'Drop/repeat samples' 
(default: Linear...')

I can explain what this does: when you play a media file that is in a
different bitrate than your soundcard output (typically, you have an
audio file that is at 44100Hz and the soundcard runs at 48000Hz), the
sound needs to be converted from one format to another. Currently we
have two versions of this conversion code, a very basic one that just
repeats or drop sound samples, and a slightly better one that generate
new samples with a simple linear interpolation algorithm, at the cost of
very slightly higher CPU usage and latency. In BeOS there was a third,
even higher quality algorithm, which we don't implement yet. Probably we
should use a 3rd party library like sox to do the resampling for the
"high quality but higher latency" mode.

One more thing. The context menu of the icon in the Deskbar tray has under 
"Options" two checkable
items: 
"Control physical output" (default: off) and "Beep" (default: on). What do 
those do?

I think "beep" enables or dsable the "beep" system sound (used by the beep() 
function).
If you are listening to music, or even worse, recording some audio out of your 
computer,
you wouldn't want any alert, failed tab completion in terminal, etc to disturb 
your
recording.

The PC speaker is not used for anything in Haiku, unless you install the driver 
that
makes it behave as a CPU-hungry and very bad quality soundcard.

-- 
Adrien.


Other related posts: