05-11-2021, 08:41 AM
When a song file is paused the currentsong.txt file may be empty while the state is being changed. Here is an example of printing it repeatedly while pausing the stereo test track
The file is also sometimes empty for a short while after Moode startup is complete, but before anything is played, so it is difficult to interpret what an empy file means.
Adrian
Code:
pi@moode:~ $ cat /var/local/www/currentsong.txt
file=SDCARD/Stereo Test/LRMonoPhase4.flac
artist=Koz
album=Stereo Test
title=LR Channel And Phase
coverurl=/coverart.php/SDCARD%2FStereo%20Test%2FLRMonoPhase4.flac
track=1
date=1997
composer=
encoded=16/48 FLAC
bitrate=435 kbps
outrate=16 bit, 44.1 kHz, Stereo, 1.411 Mbps
volume=13
mute=0
state=play
pi@moode:~ $ cat /var/local/www/currentsong.txt
pi@moode:~ $ cat /var/local/www/currentsong.txt
pi@moode:~ $ cat /var/local/www/currentsong.txt
file=SDCARD/Stereo Test/LRMonoPhase4.flac
artist=Koz
album=Stereo Test
title=LR Channel And Phase
coverurl=/coverart.php/SDCARD%2FStereo%20Test%2FLRMonoPhase4.flac
track=1
date=1997
composer=
encoded=16/48 FLAC
bitrate=131 kbps
outrate=0 bps
volume=13
mute=0
state=pause
The file is also sometimes empty for a short while after Moode startup is complete, but before anything is played, so it is difficult to interpret what an empy file means.
Adrian