Hi
I have a RPi configured as an internet radio using MPC/MPD based on ALSA driver. Sometimes the audio output dies and well not come back up until I run mpc play again. What I would like to do is find a way to monitor the audio output and detect when the audio output dies. I'm not sure how to do this, one method I have considered is to monitor the WiFi RX data to see if the stream has stopped. I would like a better method.
My ear can detect when the audio output has died and I can type mpc play to get it going again, I want to implement a software solution that does exactly what my ear does.
Any pointers or suggestions should get me off on the right track, I don't necessarily need a fully working solution.
Thanks for reading
Tony