diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-19 01:35:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-19 01:35:43 +0200 |
commit | 24e582808c18d6866d8c10f8f0320b1af0ab758b (patch) | |
tree | 2f632722d576995f19bf90c6a17272eade31387e /src/pulsecore/source.h | |
parent | 2838b78e59ee7c8ea42fec6880cc4c2b2a2c9485 (diff) |
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
Diffstat (limited to 'src/pulsecore/source.h')
-rw-r--r-- | src/pulsecore/source.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/source.h b/src/pulsecore/source.h index 6f33de06..7b3e4953 100644 --- a/src/pulsecore/source.h +++ b/src/pulsecore/source.h @@ -79,7 +79,7 @@ struct pa_source { pa_volume_t base_volume; /* shall be constant */ unsigned n_volume_steps; /* shall be constant */ - pa_cvolume virtual_volume, soft_volume; + pa_cvolume volume, soft_volume; pa_bool_t muted:1; pa_bool_t refresh_volume:1; |