Shairport-sync: Q: Is Audio playing? [Resolved]

Created on 20 Oct 2018  路  3Comments  路  Source: mikebrady/shairport-sync

Hi, it's possible find, if now some music playing? If is shairport-sync started as deamon?

question

All 3 comments

Thanks for the post. Please have a look at #727 for some information about using logs. Also, enabling statistics may also help you to find out what鈥檚 happening.

Hi, I solved this problem with cat /proc/asound/ALSA/pcm0p/sub0/status -- if something plays - file contains some stats, but if nothing plays file contain 'closed'
// I was looking for automatic amplifier swithing on and off (I have openhab2 and smart power plugs)

Thanks -- now I understand :) By the way, there are two program / script hooks for this in the configuration file for attaching programs just before play starts and just after play ends -- look for run_this_before_play_begins and run_this_after_play_ends in the sessioncontrol section.

Was this page helpful?
0 / 5 - 0 ratings