[gstreamer-bugs] [Bug 571610] [pulsesink] Allow setting a log volume, instead of a linear one

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Feb 14 01:17:11 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=571610

  GStreamer | gst-plugins-good | Ver: git




------- Comment #1 from Sebastian Dröge  2009-02-14 09:17 UTC -------
A logarithmic volume would of course make more sense but unfortunately the
"volume" property is like an interface that is used for example by playbin2. If
it's found on an audio sink the volume property of playbin2 simply forwards to
the volume property of the sink and no "volume" element is inserted.
We should probably change this in 0.11 everywhere and maybe also add some
property description interface that could give some information about the unit
that is used by properties (dB or linear scale factory, nanoseconds or
milliseconds, ...).

For now you can simply convert by taking the logarithm:

dB = 20 log_10 (scale)
scale = 10**(dB/20)


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=571610.




More information about the Gstreamer-bugs mailing list