Commit graph

46 commits

Author SHA1 Message Date
Lennart Poettering
96f01b822a volume: simplify volume multiplifactions, do them in integer only 2009-08-19 00:57:58 +02:00
Lennart Poettering
d634555a3e volume: introduce pa_cvolume_min() and pa_cvolume_min_mask() 2009-08-19 00:56:16 +02:00
Lennart Poettering
caa7928972 libpulse: some minor optimizations when checking equality 2009-08-17 03:50:04 +02:00
Lennart Poettering
8208214882 volume: add pa_cvolume_merge() call 2009-08-17 03:40:36 +02:00
Lennart Poettering
0f2a4ed422 volume: guarantee dB/linear conversion is reversible 2009-08-14 20:03:30 +02:00
Lennart Poettering
083b17b28a volume,channelmap: reimplement a couple of calls based on channel masks 2009-06-17 03:09:28 +02:00
Lennart Poettering
64b0f38b67 volume: implement functions for multiplicating a cvolume with a scalar 2009-06-17 03:04:21 +02:00
Lennart Poettering
8b180b6368 volume: implement pa_cvolume_{scale|max|avg}_mask() 2009-05-25 23:55:44 +02:00
Lennart Poettering
000bdb8d25 volume: change pa_volume_t mapping to cubic 2009-05-22 01:30:54 +02:00
Lennart Poettering
905c8004a0 volume: introduce pa_cvolume_{get|set}_position() 2009-05-13 15:20:45 +02:00
Lennart Poettering
237a9e12f8 volume: increase dB range to -90dB
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
2009-04-13 22:41:44 +02:00
Lennart Poettering
14e89d4ecd when calculating volume from dB use ceil() 2009-04-08 03:47:48 +02:00
Lennart Poettering
d612fbb802 compare with doubles, not integer 2009-04-07 04:02:25 +02:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
32e5e64921 add a lot of validity checking 2009-02-03 21:57:58 +01:00
Lennart Poettering
543115ae17 add new API pa_cvolume_compatible_with_channel_map() 2009-02-03 21:15:32 +01:00
Lennart Poettering
554c818d21 before applying balance/fade check it actually makes sense 2009-02-03 04:05:41 +01:00
Lennart Poettering
e412f1cde3 whitespace cleanup 2009-02-02 01:54:09 +01:00
Lennart Poettering
1b53f8297f implement pa_cvolume_{get|set}_fade 2009-01-30 00:22:59 +01:00
Lennart Poettering
9314db79db fix a bogus assert 2009-01-30 00:14:50 +01:00
Lennart Poettering
634afede7d properly deal with the case when l/r is silent when adjust balance 2009-01-30 00:14:28 +01:00
Lennart Poettering
ee17772cea add missing 'const' 2009-01-27 23:39:58 +01:00
Lennart Poettering
5449d793ae swap argument order of pa_cvolume_get_balance() to be a bit more systematic 2009-01-27 02:45:37 +01:00
Lennart Poettering
4e31e00b63 implement pa_cvolume_scale() 2009-01-27 00:47:07 +01:00
Lennart Poettering
936862362c don't divide by zero if no left resp. no right channels are defined 2009-01-20 03:24:11 +01:00
Lennart Poettering
5f6641cfdd Beef pactl output up a bit 2009-01-19 23:07:34 +01:00
Lennart Poettering
723d71a021 add api for manipulating volume balances 2009-01-19 21:45:58 +01:00
Lennart Poettering
6342053b34 Add new API functions pa_volume_snprint() and pa_sw_volume_snprint_dB() 2008-12-24 00:45:06 +01:00
Lennart Poettering
da4ad5ed01 implement pa_sw_volume_divide() and pa_sw_cvolume_divide() 2008-10-04 01:40:41 +02:00
Lennart Poettering
7a1a147881 rename pa_cvolume_snprint_dB to pa_sw_cvolume_snprint_dB since it is
useful only for software volumes
2008-10-03 22:21:27 +02:00
Lennart Poettering
bde142c237 when checking the validity of a cvolume check whether all values are not -1 2008-10-03 17:45:04 +02:00
Lennart Poettering
ebb2ecbe12 add new API call pa_cvolume_compatible() 2008-10-03 17:43:40 +02:00
Lennart Poettering
619ed8a82d add new API call pa_cvolume_snprint_dB() 2008-10-03 17:42:38 +02:00
Lennart Poettering
be77bcd9ad add new API call pa_cvolume_init() 2008-10-03 17:16:55 +02:00
Lennart Poettering
8a50105fe0 if a volume or channel map is invalid show so when printing it 2008-10-03 15:16:26 +02:00
Lennart Poettering
33b186e74d user lrint() and friends in inner loops instead of normal C casts to speed up a few things 2008-10-03 02:34:59 +02:00
Lennart Poettering
13018d62c1 fix a few compiler warnings on older gcc 2008-08-29 23:53:55 +02:00
Lennart Poettering
b7026bf248 add a few more gcc warning flags and fix quite a few problems found by doing so 2008-08-19 22:39:54 +02:00
Lennart Poettering
e4adcf7071 add new API function pa_cvolume_max() 2008-08-13 13:52:20 +02:00
Lennart Poettering
5880516076 add new API function pa_cvolume_remap() 2008-08-04 18:40:53 +02:00
Lennart Poettering
8ae83d618e get rid of svn $ keywords 2008-06-18 23:23:21 +03:00
Lennart Poettering
045c1d602d merge glitch-free branch back into trunk
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
a67c21f093 merge 'lennart' branch back into trunk.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-28 19:13:50 +00:00
Pierre Ossman
06211b7c8f Add copyright notices to all relevant files. (based on svn log)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-13 15:35:19 +00:00
Pierre Ossman
521daf6f0a Huge trailing whitespace cleanup. Let's keep the tree pure from here on,
mmmkay?


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-01-04 13:43:45 +00:00
Lennart Poettering
f44ba09265 big s/polyp/pulse/g
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 21:53:48 +00:00
Renamed from src/polyp/volume.c (Browse further)