https://github.com/mikebrady/shairport-sync/issues/1548null
Discard all samples (playback) or generate zero samples (capture)
hw:CARD=P230Q200,DEV=0
P230-Q200,
Direct hardware device without any conversions
hw:CARD=P230Q200,DEV=1
P230-Q200,
Direct hardware device without any conversions
plughw:CARD=P230Q200,DEV=0
P230-Q200,
Hardware device with all software conversions
plughw:CARD=P230Q200,DEV=1
P230-Q200,
Hardware device with all software conversions
default:CARD=P230Q200
P230-Q200,
Default Audio Device
sysdefault:CARD=P230Q200
P230-Q200,
Default Audio Device
dmix:CARD=P230Q200,DEV=0
P230-Q200,
Direct sample mixing device
dmix:CARD=P230Q200,DEV=1
P230-Q200,
Direct sample mixing device
root@armbian:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hw:CARD=P230Q200,DEV=0
P230-Q200,
Direct hardware device without any conversions
hw:CARD=P230Q200,DEV=1
P230-Q200,
Direct hardware device without any conversions
plughw:CARD=P230Q200,DEV=0
P230-Q200,
Hardware device with all software conversions
plughw:CARD=P230Q200,DEV=1
P230-Q200,
Hardware device with all software conversions
default:CARD=P230Q200
P230-Q200,
Default Audio Device
sysdefault:CARD=P230Q200
P230-Q200,
Default Audio Device
dmix:CARD=P230Q200,DEV=0
P230-Q200,
Direct sample mixing device
dmix:CARD=P230Q200,DEV=1
P230-Q200,
Direct sample mixing device
hw:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
Direct hardware device without any conversions
plughw:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
Hardware device with all software conversions
default:CARD=AUDIO
SUCA AUDIO, USB Audio
Default Audio Device
sysdefault:CARD=AUDIO
SUCA AUDIO, USB Audio
Default Audio Device
front:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
Front output / input
surround21:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=AUDIO,DEV=0
SUCA AUDIO, USB Audio
Direct sample mixing device
apt install --no-install-recommends build-essential git autoconf automake libtool \
libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev \
libplist-dev libsodium-dev libavutil-dev libavcodec-dev libavformat-dev uuid-dev libgcrypt-dev xxd
shairport-sync -h
Please use the configuration file for settings where possible.
Many more settings are available in the configuration file.
Usage: shairport-sync [options...]
or: shairport-sync [options...] -- [audio output-specific options]
Options:
-h, --help Show this help.
-V, --version Show version information -- the version string.
-X, --displayConfig Output OS information, version string, command line, configuration file and active settings to the log.
--statistics Print some interesting statistics. More will be printed if -v / -vv / -vvv are also chosen.
-v, --verbose Print debug information; -v some; -vv more; -vvv lots -- generally too much.
-c, --configfile=FILE Read configuration settings from FILE. Default is /etc/shairport-sync.conf.
-a, --name=NAME Set service name. Default is the hostname with first letter capitalised.
--password=PASSWORD Require PASSWORD to connect. Default is no password. (Classic AirPlay only.)
-p, --port=PORT Set RTSP listening port. Default 5000; 7000 for AirPlay 2.
-L, --latency=FRAMES [Deprecated] Set the latency for audio sent from an unknown device.
The default is to set it automatically.
-S, --stuffing=MODE Set how to adjust current latency to match desired latency, where:
"basic" inserts or deletes audio frames from packet frames with low processor overhead, and
"soxr" uses libsoxr to minimally resample packet frames -- moderate processor overhead.
The default "auto" setting chooses basic or soxr depending on processor capability.
The "soxr" option is only available if built with soxr support.
-B, --on-start=PROGRAM Run PROGRAM when playback is about to begin.
-E, --on-stop=PROGRAM Run PROGRAM when playback has ended.
For -B and -E options, specify the full path to the program and arguments, e.g. "/usr/bin/logger".
Executable scripts work, but the file must be marked executable have the appropriate shebang (#!/bin/sh) on the first line.
-w, --wait-cmd Wait until the -B or -E programs finish before continuing.
-o, --output=BACKEND Select audio backend. They are listed at the end of this text. The first one is the default.
-m, --mdns=BACKEND Use the mDNS backend named BACKEND to advertise the AirPlay service through Bonjour/ZeroConf.
They are listed at the end of this text.
If no mdns backend is specified, they are tried in order until one works.
-r, --resync=THRESHOLD [Deprecated] resync if error exceeds this number of frames. Set to 0 to stop resyncing.
-t, --timeout=SECONDS Go back to idle mode from play mode after a break in communications of this many seconds (default 120). Set to 0 never to exit play mode.
--tolerance=TOLERANCE [Deprecated] Allow a synchronization error of TOLERANCE frames (default 88) before trying to correct it.
--logOutputLevel Log the output level setting -- a debugging option, useful for determining the optimum maximum volume.
-M, --metadata-enable Ask for metadata from the source and process it. Much more flexibility with configuration file settings.
--metadata-pipename=PIPE send metadata to PIPE, e.g. --metadata-pipename=/tmp/shairport-sync-metadata.
The default is /tmp/shairport-sync-metadata.
-g, --get-coverart Include cover art in the metadata to be gathered and sent.
--log-to-syslog Send debug and statistics information through syslog
If used, this should be the first command line argument.
-u, --use-stderr [Deprecated] This setting is not needed -- stderr is now used by default and syslog is selected using --log-to-syslog.
Available mDNS backends:
avahi
Available audio backends:
alsa (default)
pipe
stdout
Settings and options for the audio backend "alsa":
-d output-device set the output device, default is "default".
-c mixer-control set the mixer control name, default is to use no mixer.
-m mixer-device set the mixer device, default is the output device.
-i mixer-index set the mixer index, default is 0.
hardware output devices:
"hw:P230Q200"
"hw:AUDIO"
Settings and options for the audio backend "pipe":
Provide the pipe's pathname. The default is "/tmp/shairport-sync-audio".
There are no settings or options for the audio backend "stdout".