pactl: Add a set-sink-formats command

This uses the module-device-restore protocol extension to save formats
on sinks that support it.
This commit is contained in:
Arun Raghavan 2011-08-15 09:47:09 +05:30
parent 8bffbcde1b
commit 0f3be7b72b
2 changed files with 71 additions and 3 deletions

View file

@ -217,6 +217,14 @@ USA.
<optdesc><p>Set the mute status of the specified sink input (identified by its numerical index).</p></optdesc>
</option>
<option>
<p><opt>set-sink-formats</opt> <arg>SINK</arg> <arg>FORMATS</arg></p>
<optdesc><p>Set the supported formats of the specified sink (identified by its numerical index) if supported by the sink.
<arg>FORMATS</arg> is specified as a semi-colon (;) separated list of formats in the form
'encoding[, key1=value1, key2=value2, ...]' (for example, AC3 at 32000, 44100 and 48000 Hz would be specified as
'ac3-iec61937, format.rate = "[ 32000, 44100, 48000 ]"').
</p></optdesc> </option>
<option>
<p><opt>subscribe</opt></p>
<optdesc><p>Subscribe to events, pactl does not exit by itself, but keeps waiting for new events.</p></optdesc>