#compdef oggenc ogg123 ogginfo oggdec _vorbis (){ case $service in oggenc) _arguments -C -s \ '(--help)-h[Display help]'\ '(-h)--help[Display help]'\ '(--raw)-r[Assume input data is raw little-endian audio data with no header information.]'\ '(-r)--raw[Assume input data is raw little-endian audio data with no header information.]'\ '(--raw-bits=)-B[Sets raw mode input sample size in bits.]:sample size:(8 16)'\ '(-B)--raw-bits=[Sets raw mode input sample size in bits.]:sample size:(8 16)'\ '(--raw-chan=)-C[Sets raw mode input number of channels.]:number of channels:'\ '(-C)--raw-chan=[Sets raw mode input number of channels.]:number of channels:'\ '(--raw-rate=)-R[Sets raw mode input samplerate.]:samplerate:(44100 48000)'\ '(-R)--raw-rate=[Sets raw mode input samplerate.]:samplerate:(44100 48000)'\ '--raw-endianness[Sets raw mode endianness]:endianness:(0 1)'\ '(--quiet)-Q[Quiet mode. No messages are displayed.]'\ '(-Q)--quiet[Quiet mode. No messages are displayed.]'\ '(--bitrate=)-b[Sets encoding to the bitrate closest to n (in kb/s).]'\ '(-b)--bitrate=[Sets encoding to the bitrate closest to n (in kb/s).]'\ '(--min-bitrate=)-m[Sets minimum bitrate to n (in kb/s).]'\ '(-m)--min-bitrate=[Sets minimum bitrate to n (in kb/s).]'\ '(--max-bitrate=)-M[Sets maximum bitrate to n (in kb/s).]'\ '(-M)--max-bitrate=[Sets maximum bitrate to n (in kb/s).]'\ '--managed[ Set bitrate management mode. This turns off the normal VBR encoding]'\ '(--quality=)-q[Sets encoding quality to n, between -1 (low) and 10 (high).]:quality:(0 1 2 3 4 5 6 7 8 9 10)'\ '(-q)--quality=[Sets encoding quality to n, between -1 (low) and 10 (high).]:quality:(0 1 2 3 4 5 6 7 8 9 10)'\ '--resample[Resample input to the given sample rate (in Hz) before encoding.]'\ '--downmix[ Downmix input from stereo to mono (has no effect on non-stereo streams).]'\ '--advanced-encode-option[Sets an advanced option.]:optionname:(bitrate_average_window lowpass_frequency)'\ '(--serial)-s[Forces a specific serial number in the output stream.]'\ '(--output-file=)-o[Write the Ogg Vorbis stream to output_file]:output file:_files -g \*.ogg'\ '(-o)-output-file=[Write the Ogg Vorbis stream to output_file]:output file:_files -g \*.ogg'\ '(--pattern=)-n[Produce filenames as this string]'\ '(-n)--pattern=[Produce filenames as this string]'\ '*-c[Add the string comment as an extra comment.]'\ '*--comment[Add the string comment as an extra comment.]'\ '*-a[Set the artist comment field in the comments to artist.]'\ '*--artist[Set the artist comment field in the comments to artist.]'\ '*-G[Set the genre comment field in the comments to genre.]'\ '*--genre[Set the genre comment field in the comments to genre.]'\ '*-d[Sets the date comment field to the given value.]'\ '*--date[Sets the date comment field to the given value.]'\ '*-N[Sets the track number comment field to the given value.]'\ '*--tracknum[Sets the track number comment field to the given value.]'\ '*-t[Set the track title comment field to title.]'\ '*--title[Set the track title comment field to title.]'\ '*-l[Set the album comment field to album.]'\ '*--album[Set the album comment field to album.]'\ '*:wav file:_files -g \*.wav' ;; ogg123) _arguments -C -s \ '(-h)--help[Dispaly help]'\ '(--help)-h[Dispaly help]'\ '(--version)-V[Display ogg123 version]'\ '(-V)--version[Display ogg123 version]'\ '(--device=)-d[Uses an output device]:device:{compadd "$expl[@]" /dev/*}'\ '(-d)--device=[Uses an output device]:device:{compadd "$expl[@]" /dev/*}'\ '(--files=)-f[Set the output filename for a previously specified file device \(with -d\)]:output filename:_files'\ '(--files=)-f[Set the output filename for a previously specified file device \(with -d\)]:output filename:_files'\ '(--skip)-k[Skip the first '\''n'\'' seconds]:seconds to skip:'\ '(-k)--skip[Skip the first '\''n'\'' seconds]:seconds to skip:'\ '(-o)--device-option=[Passes special option k with value v to previously specified device (with -d). See man page for more info.]'\ '(--device-option=)-o[Passes special option k with value v to previously specified device (with -d). See man page for more info.]'\ '(--buffer)-b[Use an input buffer of '\''n'\'' kilobytes]:kilobytes:'\ '(-b)--buffer[Use an input buffer of '\''n'\'' kilobytes]:kilobytes:'\ '(--prebuffer)-p[Load n% of the input buffer before playing]:percentage:'\ '(-p)--prebuffer[Load n% of the input buffer before playing]:percentage:'\ '(--verbose)-v[Display progress and other status information]'\ '(-v)--verbose[Display progress and other status information]'\ '(--quiet)-q[Don'\''t display anything (no title)]'\ '(-q)--quiet[Don'\''t display anything (no title)]'\ '(--nth)-x[Play every '\''n'\''th block]:'\''n'\''th block:'\ '(-x)--nth[Play every '\''n'\''th block]:'\''n'\''th block:'\ '(--ntimes)-y[Repeat every played block '\''n'\'' times]:times:'\ '(-y)--ntimes[Repeat every played block '\''n'\'' times]:times:'\ '(--shuffle)-z[Shuffle play]'\ '(-z)--shuffle[Shuffle play]'\ '(--delay=)-l[set s \[milliseconds\] (default 500).]:milliseconds:'\ '(-l)--delay=[set s \[milliseconds\] (default 500).]:milliseconds:'\ '(--playlist)-@[Play all of the files named in the file '\''playlist'\''.]:Playlist:_files'\ '(-@)--playlist[Play all of the files named in the file '\''playlist'\''.]:Playlist:_files'\ '--audio-buffer[Use an output audio buffer of approximately '\''n'\'' kilobytes.]:kilobytes:'\ '*:ogg files:_files -g \*.ogg' ;; ogginfo) _arguments -C -s \ '-h[Show a help and usage message]'\ '-q[Quiet mode. This may be specified multiple times.]'\ '-v[Verbose mode.]'\ '*:ogg files:_files -g \*.ogg' ;; oggdec) _arguments -C -s \ '(--quiet)-q[Suppresses program output.]'\ '(--quiet)-q[Suppresses program output.]'\ '(--help)-h[Print help message.]'\ '(--help)-h[Print help message.]'\ '(--version)-v[Display version information.]'\ '(-v)--version[Display version information.]'\ '(--bits=)-b[Bits per sample.]:Bits per sample:(8 16)'\ '(-b)--bits=[Bits per sample.]:Bits per sample:(8 16)'\ '(--endian=)-e[Set endianness for 16-bit output.]:endianness:(( 0\:\(default\)\ is\ little-endian\ \(Intel\ byte\ order\). 1\:is\ big-endian\ \(sane\ byte\ order\). ))'\ '(-e)--endian=[Set endianness for 16-bit output.]:endianness:(( 0\:\(default\)\ is\ little-endian\ \(Intel\ byte\ order\). 1\:is\ big-endian\ \(sane\ byte\ order\). ))'\ '(--raw=)-R[Output in raw format.]'\ '(-R)--raw=[Output in raw format.]'\ '(--output=)-o[Write output to specified filename.]:output filename:_files'\ '(-o)--output=[Write output to specified filename.]:output filename:_files'\ '(--sign=)-s[Set signedness for output.]:signedness:(( 0\:unsigned 1\:signed\ \(default\) ))'\ '(-s)--sign=[Set signedness for output.]:signedness:(( 0\:unsigned 1\:signed\ \(default\) ))'\ '*:ogg files:_files -g \*.ogg' ;; esac } _vorbis "$@"