summaryrefslogtreecommitdiffstats
path: root/src/pulse/volume.h
Commit message (Collapse)AuthorAgeFilesLines
* volume: Add a PA_VOLUME_UI_MAX define for the recommended max volume to show ↵Colin Guthrie2011-03-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* volume: Trivial cosmetics (remove a space)Colin Guthrie2010-12-061-1/+1
|
* doxygen: Fix version numbers for new featuresColin Guthrie2010-12-041-2/+2
| | | | | | Due to how our branching worked out, these new features will debut in v1.0 and not v0.9.22 which has already been released from the stable-queue branch
* volume: Decrease PA_VOLUME_MAX to be < 2^31Arun Raghavan2010-10-151-1/+1
| | | | | | | This decrease PA_VOLUME_MAX to be less than 2^31. We want to do this in order to simplify signed arithmetic when applying software volume scaling (since the volume can now always be safely treated as a signed number).
* volume: Clamp volume to PA_VOLUME_MAXArun Raghavan2010-10-151-0/+3
| | | | | | 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-0/+3
| | | | | | | 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).
* doxygen: Add 'See also' linking to the overview pageDavid Fries2010-10-131-1/+4
| | | | | | | A good many of the header files are broken into a function reference page and an overview page. These changes add a direct link from each function reference page to their overview page if one exists.
* doxygen: Fix the "all" comments regarding volume helper functions.David Fries2010-10-131-10/+11
| | | | | | Mostly change "Set the volume of all channels" to "Set the volume of the first n channels" as the first is incorrect, it doesn't set all the channels and doesn't explain what n was for.
* headers: Some trivial fixes for some documentation typosMads Kiilerich2010-01-051-3/+3
| | | | | | | | | | | | | | | | Note also the willneed/will_need inconsistency. I guess it could be nice to ASAP choose one of them and introduce a backward compatibility hack for the other. The issues was mostly found with: for a in $(grep -r '^[ /]\*.*()' $( find -name '*.[ch]') | sed 's,^.* \([^ ]*\)().*$,\1,g' | sort | uniq | grep ^pa_) do grep -rq "^.[^*].*\<$a(" $(find * -name '*.h') || echo $a done
* volume: add pa_cvolume_inc_clamp functionVladimir Kokarev2009-11-051-0/+4
| | | | | | 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
* volume: fix definition of PA_VOLUME_MAX and introduce PA_VOLUME_INVALID and ↵Lennart Poettering2009-09-071-3/+6
| | | | use it wherever applicable
* volume: introduce pa_cvolume_{inc|dec}()Lennart Poettering2009-08-191-0/+8
|
* volume: introduce pa_cvolume_min() and pa_cvolume_min_mask()Lennart Poettering2009-08-191-0/+10
|
* volume: document when arguments of certain functions may overlapLennart Poettering2009-08-171-4/+8
|
* volume: add pa_cvolume_merge() callLennart Poettering2009-08-171-0/+5
|
* volume: implement functions for multiplicating a cvolume with a scalarLennart Poettering2009-06-171-1/+11
|
* volume: implement pa_cvolume_{scale|max|avg}_mask()Lennart Poettering2009-05-251-1/+21
|
* volume: change pa_volume_t mapping to cubicLennart Poettering2009-05-221-3/+3
|
* volume: introduce pa_cvolume_{get|set}_position()Lennart Poettering2009-05-131-0/+13
|
* api: introduce PA_VOLUME_MAXLennart Poettering2009-04-131-2/+6
|
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* add new API pa_cvolume_compatible_with_channel_map()Lennart Poettering2009-02-031-2/+6
|
* before applying balance/fade check it actually makes senseLennart Poettering2009-02-031-7/+14
|
* implement pa_cvolume_{get|set}_fadeLennart Poettering2009-01-301-2/+17
|
* 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
|
* import version.h in all header files to make sure that version-based feature ↵Lennart Poettering2009-01-271-0/+1
| | | | testing works
* implement pa_cvolume_scale()Lennart Poettering2009-01-271-1/+6
|
* fix doxygen version referencesLennart Poettering2009-01-191-4/+4
|
* add api for manipulating volume balancesLennart Poettering2009-01-191-0/+14
|
* Add new API functions pa_volume_snprint() and pa_sw_volume_snprint_dB()Lennart Poettering2008-12-241-0/+20
|
* implement pa_sw_volume_divide() and pa_sw_cvolume_divide()Lennart Poettering2008-10-041-2/+15
|
* rename pa_cvolume_snprint_dB to pa_sw_cvolume_snprint_dB since it isLennart Poettering2008-10-031-2/+2
| | | | useful only for software volumes
* increase PA_CVOLUME_SNPRINT_MAX to a proper value and document that it is ↵Lennart Poettering2008-10-031-2/+6
| | | | not considered part of the ABI
* add new API call pa_cvolume_compatible()Lennart Poettering2008-10-031-0/+4
|
* add new API call pa_cvolume_snprint_dB()Lennart Poettering2008-10-031-0/+10
|
* add new API call pa_cvolume_init()Lennart Poettering2008-10-031-0/+5
|
* Merge branch 'master' of git://git.0pointer.de/pulseaudioColin Guthrie2008-08-221-0/+7
|\
| * add new API function pa_cvolume_max()Lennart Poettering2008-08-131-0/+3
| |
| * add new API function pa_cvolume_remap()Lennart Poettering2008-08-041-0/+4
| |
* | Fix documentation of constant: PA_VOLUME_MUTED (not PA_VOLUME_MUTE)Colin Guthrie2008-07-031-1/+1
|/
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|
* type fixes for constantsLennart Poettering2008-05-171-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2450 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge glitch-free branch back into trunkLennart Poettering2008-05-151-10/+12
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge 'lennart' branch back into trunk.Lennart Poettering2007-10-281-10/+10
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add copyright notices to all relevant files. (based on svn log)Pierre Ossman2007-02-131-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman2007-01-041-3/+3
| | | | | | | mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
* replace a few remaining uppercase "Polypaudio" occurences with "PulseAudio"Lennart Poettering2006-06-191-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1036 fefdeb5f-60dc-0310-8127-8f9354f1896f
* big s/polyp/pulse/gLennart Poettering2006-06-191-0/+172
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f