[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, stable-queue, updated. v0.9.22-31-gb872254

Colin Guthrie gitmailer-noreply at 0pointer.de
Thu Mar 3 05:33:09 PST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The stable-queue branch has been updated
      from  2ee4ec507cd4105fcddeaf706749524ddeb1ebf5 (commit)

- Log -----------------------------------------------------------------
b872254 volume: Add a PA_VOLUME_UI_MAX define for the recommended max volume to show in UIs
a8cd9d2 conf: Make system.pa use udev-detect and not hal-detect.
-----------------------------------------------------------------------

Summary of changes:
 src/daemon/default.pa.in |    2 +-
 src/daemon/system.pa.in  |    6 +++---
 src/pulse/volume.h       |    7 +++++++
 3 files changed, 11 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------

commit a8cd9d288006c317d087bad9c4e0d2f399110184
Author: Colin Guthrie <cguthrie at mandriva.org>
Date:   Thu Mar 3 09:37:16 2011 +0000

    conf: Make system.pa use udev-detect and not hal-detect.
    
    Also fix a left over reference to HAL in default.pa

diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in
index 15e253f..1768c31 100755
--- a/src/daemon/default.pa.in
+++ b/src/daemon/default.pa.in
@@ -39,7 +39,7 @@ load-module module-card-restore
 load-module module-augment-properties
 
 ### Load audio drivers statically (it's probably better to not load
-### these drivers manually, but instead use module-hal-detect --
+### these drivers manually, but instead use module-udev-detect --
 ### see below -- for doing this automatically)
 #load-module module-alsa-sink
 #load-module module-alsa-source device=hw:1,0
diff --git a/src/daemon/system.pa.in b/src/daemon/system.pa.in
index 27e4281..4b1227f 100755
--- a/src/daemon/system.pa.in
+++ b/src/daemon/system.pa.in
@@ -20,11 +20,11 @@
 # mode.
 
 ### Automatically load driver modules depending on the hardware available
-.ifexists module-hal-detect at PA_SOEXT@
-load-module module-hal-detect
+.ifexists module-udev-detect at PA_SOEXT@
+load-module module-udev-detect
 .else
 ### Alternatively use the static hardware detection module (for systems that
-### lack HAL support)
+### lack udev support)
 load-module module-detect
 .endif
 

commit b872254762285597d94dd9174b8c1426dd263062
Author: Colin Guthrie <cguthrie at mandriva.org>
Date:   Thu Mar 3 12:04:31 2011 +0000

    volume: Add a PA_VOLUME_UI_MAX define for the recommended max volume to show in UIs
    
    This value is not a technical upper limit, it's just a 'sensible'
    value that is not crazy high, but also allows software amplification
    above 0dB (aka 100%) for very quiet audio sources.
    
    We recommend that a comprehensive volume control UI should allow
    users to set volumes up to this limit, although of course should
    deal gracefully if the user has set the volume even higher than this
    without resulting in a feedback loop that effectively limits the
    upper volume.
    
    The value chosen is +11dB. This was selected somewhat subjectively
    and is very similar to the current 150% that gnome-volume-control
    uses (which is ~+10.57dB).
    
    On the plus side, we now recommend that everyone allows
    'Volumes up to 11' which is pretty awesome.
    http://en.wikipedia.org/wiki/Up_to_eleven
    
    https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-April/006945.html
    https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-April/006950.html

diff --git a/src/pulse/volume.h b/src/pulse/volume.h
index d98443b..2b6637b 100644
--- a/src/pulse/volume.h
+++ b/src/pulse/volume.h
@@ -115,6 +115,13 @@ typedef uint32_t pa_volume_t;
 /** Maximum valid volume we can store. \since 0.9.15 */
 #define PA_VOLUME_MAX ((pa_volume_t) UINT32_MAX-1)
 
+/** Recommended maximum volume to show in user facing UIs.
+ * Note: UIs should deal gracefully with volumes greater than this value
+ * and not cause feedback loops etc. - i.e. if the volume is more than
+ * this, the UI should not limit it and push the limited value back to
+ * the server. \since 0.9.23 */
+#define PA_VOLUME_UI_MAX (pa_sw_volume_from_dB(+11.0))
+
 /** Special 'invalid' volume. \since 0.9.16 */
 #define PA_VOLUME_INVALID ((pa_volume_t) UINT32_MAX)
 

-- 
hooks/post-receive
PulseAudio Sound Server



More information about the pulseaudio-commits mailing list