pactl: Add the ability to toggle mute state.

This patch adds the ability to toggle mute for sink/sources and
sink-inputs and source outputs.

All mute commands now accept 1|0|toggle as an argument.
This commit is contained in:
poljar (Damir Jelić) 2013-01-24 01:14:17 +01:00 committed by Tanu Kaskinen
parent 32b6b4df64
commit 9779aa4985
2 changed files with 112 additions and 25 deletions

View file

@ -209,22 +209,22 @@ USA.
</option>
<option>
<p><opt>set-sink-mute</opt> <arg>SINK</arg> <arg>1|0</arg></p>
<p><opt>set-sink-mute</opt> <arg>SINK</arg> <arg>1|0|toggle</arg></p>
<optdesc><p>Set the mute status of the specified sink (identified by its symbolic name or numerical index).</p></optdesc>
</option>
<option>
<p><opt>set-source-mute</opt> <arg>SOURCE</arg> <arg>1|0</arg></p>
<p><opt>set-source-mute</opt> <arg>SOURCE</arg> <arg>1|0|toggle</arg></p>
<optdesc><p>Set the mute status of the specified source (identified by its symbolic name or numerical index).</p></optdesc>
</option>
<option>
<p><opt>set-sink-input-mute</opt> <arg>INPUT</arg> <arg>1|0</arg></p>
<p><opt>set-sink-input-mute</opt> <arg>INPUT</arg> <arg>1|0|toggle</arg></p>
<optdesc><p>Set the mute status of the specified sink input (identified by its numerical index).</p></optdesc>
</option>
<option>
<p><opt>set-source-output-mute</opt> <arg>INPUT</arg> <arg>1|0</arg></p>
<p><opt>set-source-output-mute</opt> <arg>INPUT</arg> <arg>1|0|toggle</arg></p>
<optdesc><p>Set the mute status of the specified source output (identified by its numerical index).</p></optdesc>
</option>