pulseaudio
黒したことシリーズ
再起動時にdefault-sinkの変更
How do the PulseAudio libraries decide where to connect to?
The following rule applies: (see Server Strings for an explanation of the format of server specifications)
- If the the application using the library specifies a server to connect to it is used. If the connection fails, the library fails too.
- If the environment variable
$PULSE_SERVER
is defined the library connects to that server. If the connection fails, the library fails too. - If
$DISPLAY
is set, the library tries to connect to that server and looks for the root window propertyPULSE_SERVER
for the host to connect to. IfPULSE_COOKIE
is set it is used as the path to the authentication cookie. - If the client configuration file (
~/.pulse/client.conf
or/etc/pulse/client.conf
) sets the server address, the library connects to that server. If the connection fails, the library fails too. - The library tries to connect to the default local UNIX socket for PulseAudio servers. If the connection fails, it proceeds with the next item.
- The library tries to connect to the default local TCP socket for PulseAudio servers. If the connection fails, it proceeds with the next item.
- If
$DISPLAY
is set, the library tries to connect to the default TCP port of that host. If the connection fails, it proceeds with the next item. - The connection fails.