I'm trying to check if any sound is coming out of my audio device from cli particularly. I've tried
cat /proc/asound/card*/pcm*/sub0/status
to get the status of the audio but however even when there's no sound playing I get results like this
owner_pid : 2784
trigger_time: 12480.406201499
tstamp : 14574.205418430
delay : 1248
avail : 86421
avail_max : 86421
-----
hw_ptr : 100504320
appl_ptr : 100505280
I'm probably looking at this in the wrong but my end goal is to execute a command if no sound is playing for considerable amount of time.