shell-completion: Add --encoding for pacat

This commit is contained in:
Arun Raghavan 2022-01-12 22:35:29 -05:00
parent 3e4dc134d4
commit 7df1b78ac2
2 changed files with 2 additions and 1 deletions

View file

@ -435,7 +435,7 @@ _pacat () {
local cur prev comps
local flags='-h --help --version -r --record -p --playback -v --verbose -s
--server= -d --device= -n --client-name= --stream-name= --volume=
--rate= --format= --channels= --channel-map= --fix-format --fix-rate
--rate= --format= --channels= --channel-map= --encoding= --fix-format --fix-rate
--fix-channels --no-remix --no-remap --latency= --process-time=
--latency-msec= --process-time-msec= --property= --raw --passthrough
--file-format= --list-file-formats --monitor-stream='

View file

@ -668,6 +668,7 @@ _pacat_completion() {
'--format=[sample type to use]:format:((${(q)_pacat_sample_formats}))' \
'--channels=[number of channels to use]:number:(1 2)' \
'--channel-map=[channel map to use]:map' \
'--encoding=[encoding to use for non-PCM audio]:encoding' \
'--fix-format[use the sample format of the sink]' \
'--fix-rate[use the rate of the sink]' \
'--fix-channels[channel map of the sink]' \