]> code.delx.au - pulseaudio/commit
source: rework volume handling
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Aug 2009 23:35:43 +0000 (01:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Aug 2009 23:35:43 +0000 (01:35 +0200)
commit24e582808c18d6866d8c10f8f0320b1af0ab758b
tree2f632722d576995f19bf90c6a17272eade31387e
parent2838b78e59ee7c8ea42fec6880cc4c2b2a2c9485
source: rework volume handling

- drop the 'virtual_' prefix from s->virtual_volume since we don't
  distuingish between reference and real volumes for sources

- introduce an accuracy for source volumes: if the hardware can control
  the volume "close enough" don't necessarily adjust the rest in
  software unless it is beyond a certain threshold. This should save a
  little bit of CPU at the expensive of a bit of accuracy in volume
  handling.

- other minor cleanups
src/modules/alsa/alsa-source.c
src/modules/bluetooth/module-bluetooth-device.c
src/modules/oss/module-oss.c
src/pulsecore/source.c
src/pulsecore/source.h