我正在使用以下内容来检查是否有任何程序正在写入pulseaudio接收器:
pacmd list-sink-inputs
Run Code Online (Sandbox Code Playgroud)
这在终端上非常有效。这给了我这个输出:
1 sink input(s) available.
index: 4
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.pci-0000_00_1b.0.analog-stereo>
volume: front-left: 24144 / 37% / -26.02 dB, front-right: 24144 / 37% / -26.02 dB
balance 0.00
muted: no
current latency: 59.33 ms
requested latency: 25.00 ms
sample spec: float32le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 7
client: 3 <Firefox>
properties:
media.name = "AudioStream"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "30"
application.process.id = …Run Code Online (Sandbox Code Playgroud)