mk-fg / python-pulse-control

Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)
https://pypi.org/project/pulsectl/
MIT License
171 stars 36 forks source link

Expose Boolean corked field on sink inputs #37

Closed thejohnfreeman closed 4 years ago

thejohnfreeman commented 4 years ago

Tried following the example in #3.

From what I can tell, corked is a Boolean field that means "paused", i.e. the opposite of "running". I believe the "state" that pacmd shows for sink inputs is not a field on them but just a different presentation of the corked field.

mk-fg commented 4 years ago

Thanks!

Not sure if it's same as paused/running flag for stream, but quickly checking it here with mpv, see that it definitely reflects playback state there, so guess close enough :)