Commit graph

78 commits

Author SHA1 Message Date
David Henningsson
793f46320e introspect: Expose port info per card to clients
For volume control UIs to be able to show ports in inactive profiles,
expose all ports together with the card info. This includes updating
the protocol and the client API to show the connection between ports
and for which profiles the ports are relevant.

Update protocol to 26.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2012-03-11 12:23:46 +05:30
Arun Raghavan
87e6f489a9 utils: Fixes for building without NLS 2011-12-13 09:10:08 +05:30
David Henningsson
1623859d1b pactl: Show port availability
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2011-12-02 18:21:36 +02:00
Colin Guthrie
d6b9e61b90 device-restore: Change the API to include type information (sink vs. source)
This changes the API, but as we have not released yet, this is OK.
2011-08-18 17:33:08 +01:00
Maarten Bosmans
0d349462c7 pactl: Add set-source-output-mute command 2011-08-16 11:01:34 +01:00
Arun Raghavan
fb67016844 sink: Add a SET_FORMATS flag
This adds a PA_SINK_SET_FORMATS flag to the pa_sink_flags enum,
signalling that a sink allows the set of supported formats to be set
externally. The idea is for clients to be able to know what sinks
support this ability and adapt their UI appropriately.
2011-08-16 11:11:34 +05:30
Arun Raghavan
0f3be7b72b pactl: Add a set-sink-formats command
This uses the module-device-restore protocol extension to save formats
on sinks that support it.
2011-08-15 12:49:35 +05:30
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
Colin Guthrie
8ace9185aa pactl: Make stat backwards compatible with previous versions.
This is not ideal but in order to aid people using it in scripts
etc, we will maintain backwards compatibiliy here.

Also add a 'short' mode and mention in the man page that this
will ultimately become the default at some point in the future.
2011-08-10 10:12:51 +02:00
Maarten Bosmans
49c20b3e3d pactl: Split help string up in shorter pieces for easier translation 2011-08-10 10:12:51 +02:00
Maarten Bosmans
3e14019c44 pactl: Short --help output a bit by consolidating sink/source commands 2011-08-10 10:12:51 +02:00
Maarten Bosmans
dd9265ac78 Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
Arun Raghavan
32927c50a8 pactl: Add a set-source-output-volume command 2011-06-22 22:45:28 +01:00
Colin Guthrie
4ab60d0377 introspect: Get format of source output
This gets the negotiated format of source outputs in
pa_context_get_source_output*(). Also prints the format and volume
in 'pactl list'.
2011-06-22 22:45:27 +01:00
Colin Guthrie
fdf3a08814 introspect: Get formats for sources
This gets the list of supported formats for a source in
pa_context_get_source_info*(). Also prints these in 'pactl list'.
2011-06-22 21:55:27 +01:00
Arun Raghavan
7aa84e8208 introspect: Get format of sink input
This gets the negotiated format of sink inputs in
pa_context_get_sink_input*(). Also prints the format in 'pactl list'.
2011-05-02 11:55:39 +05:30
Arun Raghavan
322980e2e3 introspect: Get formats for sinks
This gets the list of supported formats for a sink in
pa_context_get_sink_info*(). Also prints these in 'pactl list'.
2011-05-02 11:55:39 +05:30
Maarten Bosmans
9501504859 pactl: Add short output format for list action 2011-03-29 21:24:46 +01:00
Maarten Bosmans
8f25f8dc7d pactl: Separate stat and info actions 2011-03-29 21:23:56 +01:00
Maarten Bosmans
67760e3193 pactl: Add subcommands to the list command 2011-03-29 21:21:52 +01:00
Maarten Bosmans
f07505998e pactl: Accept more volume specification formats
With this you can specify the volume with 6554, 10%, 0.001 or -60dB,
all resulting in the same volume change.
2011-03-29 21:20:22 +01:00
Maarten Bosmans
684b89c639 Fix up some double spaces 2011-03-18 09:20:07 +00:00
Arun Raghavan
3265424f27 pactl: Validate volume before setting
This makes sure that a valid volume is provided before setting on
sink/sink-input/source.
2010-10-15 01:10:00 +05:30
Lennart Poettering
2c631dfe9a pactl: implement pactl subscribe
This is a simple debugging tool which prints out subscription events
2010-02-21 17:39:47 +01:00
Lennart Poettering
78984e4395 pactl: format cookie a little bit nicer 2009-10-28 23:28:12 +01:00
Lennart Poettering
8678f56532 pactl: include information about client context in pactl stat output 2009-10-28 23:27:50 +01:00
Lennart Poettering
7c55d6e91d clients: drop definition of BUFSIZE which is unused 2009-10-28 23:27:14 +01:00
Lennart Poettering
e6a666d8d5 libpulse: introduce PA_BYTES_SNPRINT_MAX and make use of it wherever applicable 2009-09-06 22:33:04 +02:00
Lennart Poettering
dee2aa3f05 pactl: drop unnecessary newlines from pa_log() invocations 2009-08-31 21:45:19 +02:00
Lennart Poettering
5b61a1991c pactl: implement pactl commands for changing volumes/mute stati 2009-08-31 21:42:54 +02:00
Lennart Poettering
75256fb671 pactl: show list of supported ports 2009-06-17 23:40:46 +02:00
Lennart Poettering
6b2ca094ae pactl: implement pactl set-{sink|source}-port 2009-06-17 04:54:39 +02:00
Lennart Poettering
4d874753f5 utils: use pa_path_get_filename() where applicable 2009-06-04 23:19:48 +02:00
Lennart Poettering
5c10b84e0f sndfile: big rework of libsndfile interfacing code
This adds proper channel map handling when reading/writing audio files.
This allows surround .WAV files to be played with the right channel
setup automatically.

This also merges paplay into pacat and adds recording into formatted
files to pacat.
2009-05-26 00:05:28 +02:00
Lennart Poettering
ff38eaf677 Merge commit 'coling/lgpl21' 2009-03-03 21:44:56 +01: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
297515a39e pass profile priority value to clients 2009-03-03 00:32:10 +01:00
Lennart Poettering
4505bc9cc6 introduce default channel map in addition to the default sample spec 2009-02-21 16:32:42 +01:00
Marc-André Lureau
c3eb9086b8 pactl: return in case of error reading file (avoid using freed d) 2009-02-19 04:54:18 +01:00
Marc-André Lureau
93ed27d561 pactl: check if pa_context_connect succeed 2009-02-19 04:53:33 +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
601293d346 implement pactl set-card-profile 2009-01-21 03:04:19 +01:00
Lennart Poettering
86f3fb8b12 show active profile 2009-01-20 20:33:28 +01:00
Lennart Poettering
a65c2c7336 add client API for querying card information 2009-01-20 03:25:29 +01:00
Lennart Poettering
8c4e2be05b include sink/source state in pactl output 2009-01-19 23:55:22 +01:00
Lennart Poettering
5f6641cfdd Beef pactl output up a bit 2009-01-19 23:07:34 +01:00
Lennart Poettering
edf88a5150 don't show autoload flag anymore since it is obsolete 2009-01-15 20:48:29 +01:00
Lennart Poettering
29c7a28817 kill autoload stuff as planned 2009-01-15 20:07:13 +01: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
756fac8d04 add new switch --disallow-exit 2008-08-06 19:39:12 +02:00