Hi @the_bertrum ,
I just tested the proposed fix in mpdmon.php, but this doesnt work. Music stops playing due to xruns, and the mpd log keeps getting filled with xrun messages. Moodeutl says nothing and the monitor doesn't kick in. This is the same behavior as with the patch @Tim Curtis proposed.
Although, not sure if - due to the preceding conditions in the code - your code gets actually hit? I doubt it. Tim may know.
So, for now, I went back to your script and switched off the stream monitor. This works.
It would be great to see this logic integrated in the stream monitor, as it requires manual work in case of a fresh install. Unfortunately I'm not a php, but Java, C++ guy.
@Tim Curtis can you please (re)consider, as this is not an isolated case, and it's improving moOde?
I just tested the proposed fix in mpdmon.php, but this doesnt work. Music stops playing due to xruns, and the mpd log keeps getting filled with xrun messages. Moodeutl says nothing and the monitor doesn't kick in. This is the same behavior as with the patch @Tim Curtis proposed.
Although, not sure if - due to the preceding conditions in the code - your code gets actually hit? I doubt it. Tim may know.
So, for now, I went back to your script and switched off the stream monitor. This works.
It would be great to see this logic integrated in the stream monitor, as it requires manual work in case of a fresh install. Unfortunately I'm not a php, but Java, C++ guy.
@Tim Curtis can you please (re)consider, as this is not an isolated case, and it's improving moOde?
Code:
Oct 25 12:41 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:41 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun
Oct 25 12:42 : alsa_output: Decoder is too slow; playing silence to avoid xrun