summaryrefslogtreecommitdiffstats
path: root/src/pulse/volume.c
Commit message (Collapse)AuthorAgeFilesLines
* Various fixes for build warningsMaarten Bosmans2011-03-021-1/+1
|
* volume: Clamp volume to PA_VOLUME_MAXArun Raghavan2010-10-151-9/+11
| | | | | | This ensures that we always clamp the volume to PA_VOLUME_MAX. While this currently has no effect, it will be required for making sure we don't exceed PA_VOLUME_MAX when its value changes in the future.
* volume: Use a macro to check if a volume is validArun Raghavan2010-10-151-17/+17
| | | | | | | This adds a PA_VOLUME_IS_VALID() macro for checking if a given pa_volume_t is valid. This makes changes to the volume ranges simpler (just change PA_VOLUME_MAX, for example, without needing to modify any other code).
* volume: add pa_cvolume_inc_clamp functionVladimir Kokarev2009-11-051-3/+7
| | | | | | added function to increase volume not exceeding specified limit simply changed PA_VOLUME_MAX to 'limit' in pa_cvolume_inc pa_cvolume_inc now calls pa_cvolume_inc_clamp with PA_VOLUME_MAX limit
* llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixesLennart Poettering2009-09-081-4/+4
|
* volume: if pa_cvolume_set_{balance|fade}() is called with invalid ↵Lennart Poettering2009-09-071-8/+4
| | | | fade/balance value log, but don't assert
* volume: when passing NULL as channel map to pa_cvolume_scale_mask() handle ↵Lennart Poettering2009-09-071-1/+5
| | | | this the same way as pa_cvolume_scale()
* volume: drop some redundant but expensive validity checksLennart Poettering2009-09-071-7/+1
|
* volume: add a couple of validity checks for pa_volume_t argumentsLennart Poettering2009-09-071-0/+16
|
* volume: fix definition of PA_VOLUME_MAX and introduce PA_VOLUME_INVALID and ↵Lennart Poettering2009-09-071-5/+5
| | | | use it wherever applicable
* volume: introduce pa_cvolume_{inc|dec}()Lennart Poettering2009-08-191-0/+34
|
* volume: use PA_VOLUME_MAX instead of (pa_volume_t) -1Lennart Poettering2009-08-191-4/+4
|
* volume: round properly when showing human readable volume percentagesLennart Poettering2009-08-191-2/+2
|
* volume: simplify volume multiplifactions, do them in integer onlyLennart Poettering2009-08-191-4/+6
|
* volume: introduce pa_cvolume_min() and pa_cvolume_min_mask()Lennart Poettering2009-08-191-2/+39
|
* libpulse: some minor optimizations when checking equalityLennart Poettering2009-08-171-0/+4
|
* volume: add pa_cvolume_merge() callLennart Poettering2009-08-171-0/+18
|
* volume: guarantee dB/linear conversion is reversibleLennart Poettering2009-08-141-1/+4
|
* volume,channelmap: reimplement a couple of calls based on channel masksLennart Poettering2009-06-171-44/+8
|
* volume: implement functions for multiplicating a cvolume with a scalarLennart Poettering2009-06-171-2/+34
|
* volume: implement pa_cvolume_{scale|max|avg}_mask()Lennart Poettering2009-05-251-10/+77
|
* volume: change pa_volume_t mapping to cubicLennart Poettering2009-05-221-12/+30
|
* volume: introduce pa_cvolume_{get|set}_position()Lennart Poettering2009-05-131-0/+46
|
* volume: increase dB range to -90dBLennart Poettering2009-04-131-1/+1
| | | | | | | Increasing the volume range to -90dB has the benefit of corresponding with a volume decrease from the full 16 bit signal to 0. This also makes us a bit more like traditional stereos
* when calculating volume from dB use ceil()Lennart Poettering2009-04-081-2/+2
|
* compare with doubles, not integerLennart Poettering2009-04-071-2/+2
|
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* add a lot of validity checkingLennart Poettering2009-02-031-16/+43
|
* add new API pa_cvolume_compatible_with_channel_map()Lennart Poettering2009-02-031-0/+13
|
* before applying balance/fade check it actually makes senseLennart Poettering2009-02-031-0/+12
|
* whitespace cleanupLennart Poettering2009-02-021-0/+3
|
* implement pa_cvolume_{get|set}_fadeLennart Poettering2009-01-301-0/+111
|
* fix a bogus assertLennart Poettering2009-01-301-1/+1
|
* properly deal with the case when l/r is silent when adjust balanceLennart Poettering2009-01-301-2/+2
|
* add missing 'const'Lennart Poettering2009-01-271-1/+1
|
* swap argument order of pa_cvolume_get_balance() to be a bit more systematicLennart Poettering2009-01-271-2/+2
|
* implement pa_cvolume_scale()Lennart Poettering2009-01-271-0/+19
|
* don't divide by zero if no left resp. no right channels are definedLennart Poettering2009-01-201-2/+9
|
* Beef pactl output up a bitLennart Poettering2009-01-191-1/+1
|
* add api for manipulating volume balancesLennart Poettering2009-01-191-0/+91
|
* Add new API functions pa_volume_snprint() and pa_sw_volume_snprint_dB()Lennart Poettering2008-12-241-3/+40
|
* implement pa_sw_volume_divide() and pa_sw_cvolume_divide()Lennart Poettering2008-10-041-5/+25
|
* rename pa_cvolume_snprint_dB to pa_sw_cvolume_snprint_dB since it isLennart Poettering2008-10-031-1/+1
| | | | useful only for software volumes
* when checking the validity of a cvolume check whether all values are not -1Lennart Poettering2008-10-031-0/+6
|
* add new API call pa_cvolume_compatible()Lennart Poettering2008-10-031-0/+14
|
* add new API call pa_cvolume_snprint_dB()Lennart Poettering2008-10-031-2/+33
|
* add new API call pa_cvolume_init()Lennart Poettering2008-10-031-1/+14
|
* if a volume or channel map is invalid show so when printing itLennart Poettering2008-10-031-0/+8
|
* user lrint() and friends in inner loops instead of normal C casts to speed ↵Lennart Poettering2008-10-031-1/+1
| | | | up a few things
* fix a few compiler warnings on older gccLennart Poettering2008-08-291-1/+1
|