pipewire-pulse: sink's state is "running" despite having no sink-inputs
- Pipewire Version: 0.3.30
- Distribution: Arch Linux
- Desktop Environment: Sway
Description of the Problem:
I am using the Pulseaudio API to record a sink's monitor source for as long as it has at least one (non-corked) sink-input. To see if this is the case I check if the sink's state is equal to PA_SINK_RUNNING. This works with Pulseaudio but with Pipewire a sink which has
- it's monitor source recorded
- no sink-inputs
is still shown as Running.
Steps to Reproduce:
- Get the name of the desired sink with
pactl list sinks
. In my case the name isalsa_output.pci-0000_00_1b.0.analog-stereo
. - Check with
pactl list sink-inputs
that you have no sink-inputs. - Check with
pactl list sinks
that the sinks's state is notRUNNING
(In my case it saysSUSPENDED
). - Record from the sink's monitor source:
parec -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor out.wav
- Check the sink's state again with
pactl list sinks
.
Actual Results: The sink's state is RUNNING
.
Expected Results: The sink's state is not RUNNING
(i.e. SUSPENDED
or IDLE
).