Commit graph

36 commits

Author SHA1 Message Date
David Henningsson
65be25dd0f channelmap: Add 2.1 surround
Add surround-21 as a alias to set up a 2.1 channel map.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-05-27 12:02:31 +02:00
Tanu Kaskinen
2747c96101 Add pa_channels_valid()
I think this makes the code a bit nicer to read and write. This also
reduces the chances of off-by-one errors when checking the bounds of
channel count values.
2013-12-15 11:44:35 +01:00
poljar (Damir Jelić)
d806b19714 Remove pa_bool_t and replace it with bool.
commands used for this (executed from the pulseaudio/src directory):
    find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \
        -a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \
        -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
        -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
        -a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \
        -a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \
        -exec sed -i -e 's/\bpa_bool_t\b/bool/g' \
        -e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \;

and:
    sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \
        -e '181,194!s/\bTRUE\b/true/' -e \
        '181,194!s/\bFALSE\b/false/' pulsecore/macro.h
2013-07-04 12:25:30 +03:00
poljar (Damir Jelić)
97da92d894 Whitespace cleanup: Remove all multiple newlines
This patch removes all occurrences of double and triple
newlines.

Command used for this:
find .  -type d \( -name ffmpeg \) -prune -o \
        -regex '\(.*\.[hc]\|.*\.cc\)' \
        -a -not -name 'adrian-aec.*' -a -not \
        -name reserve.c -a -not -name 'rtkit.*' \
        -exec sed -i -e '/^$/{N;s/^\n$//}' {} \;

Two passes were needed to remove triple newlines.
The excluded files are mirrored files from external sources.
2013-06-24 16:56:24 +03:00
Maarten Bosmans
b4e938e194 Move i18n.[ch] to src/pulsecore
The header is used in files troughout the tree and is not included in the public api,
so it belongs in pulsecore, not in pulse.
2011-08-11 13:23:42 +02:00
Lennart Poettering
27427c114c channelmap: Use "Subwoofer" as pretty name for LFE
The pretty name is suspposed to be understandable by non-technical
folks, and they are generally more used to the term "Subwoofer" than
"Low Frequency Emitter", so let's change the name here.
2010-02-21 17:48:36 +01:00
Lennart Poettering
caa7928972 libpulse: some minor optimizations when checking equality 2009-08-17 03:50:04 +02:00
Lennart Poettering
6dd580d465 channelmap: document where the WAVEX channelmap is documented 2009-08-17 03:43:05 +02:00
Lennart Poettering
32a1ef311e channelmap: adjust RFC3551 channel maps to follow spec more closely 2009-08-17 03:42:34 +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
d9939690ed channelmap: implement pa_channel_position_from_string() 2009-06-17 03:05:30 +02:00
Lennart Poettering
01fa34ba8a channelmap: introduce pa_channel_map_mask() and pa_channel_position_mask_t 2009-05-25 23:51:34 +02:00
Lennart Poettering
a714861cc1 channelmap: add pa_channel_map_has_position() 2009-05-08 22:49:47 +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
62818b8e57 fix aiff channel mapping for 6 channels 2009-02-13 15:48:34 +01:00
Lennart Poettering
32e5e64921 add a lot of validity checking 2009-02-03 21:57:58 +01:00
Lennart Poettering
b51ed38116 add a bit of missing i18n 2009-02-03 21:56:52 +01:00
Lennart Poettering
b979ab3948 implement pa_channel_map_can_fade 2009-01-31 01:17:09 +01:00
Lennart Poettering
e52c5ea68a implement new API functions pa_channel_map_can_balance(), pa_channel_map_to_name() and pa_channel_map_to_pretty_name() 2009-01-27 00:46:39 +01:00
Lennart Poettering
04e9214065 export pa_channel_map_superset() 2009-01-20 21:37:23 +01:00
Lennart Poettering
d56f3751fe treat a channel map only then as compatible with a sample spec if it is valid 2008-10-03 17:14:02 +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
b56f344b97 a few minor clean-ups 2008-09-05 01:30:48 +02:00
Lennart Poettering
3429072504 introduce upper channel map definition limit PA_CHANNEL_MAP_DEF_MAX 2008-09-05 01:30:25 +02:00
Lennart Poettering
cb0c97dae7 add new API function pa_channel_map_compatible() 2008-09-05 01:29:07 +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
31bfd6a44d fix channel position string 2008-08-06 20:16:37 +02:00
Lennart Poettering
f1d2bf8408 add i18n support 2008-08-06 18:54:13 +02:00
Lennart Poettering
132e73b2ef add new API pa_channel_map_init_extend() to synthesize a channel map if noone is known 2008-06-18 23:42:14 +02:00
Lennart Poettering
8ae83d618e get rid of svn $ keywords 2008-06-18 23:23:21 +03:00
Lennart Poettering
4c4761731d add array size to increase chance of detecting missing updates
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2054 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-13 23:41:17 +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
0669c99fb6 add missing channel names (fixes a segfault when parsing invalid channel maps)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1378 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-09-07 13:31:53 +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/channelmap.c (Browse further)