07-08-2025, 09:23 PM
(07-08-2025, 07:47 PM)Nutul Wrote:(07-08-2025, 07:01 PM)marlab Wrote: After some testing... unfortunately, it does not work with RPi4 (because mpc cannot play local files on Raspian without some changes in mpd config).
But since we have the ready-script.sh script working, it was easy to use aplay (do not forget to specify your default device in /etc/asound.conf file.)
That was my first thought... why not use aplay...?
Because aplay does not have volume control. It uses whatever the ALSA volume level happens to be
For example if the audio device supports ALSA volume i.e., "Hardware volume" and the user chooses to use MPD Software volume or a CamillaDSP config whereby CamillaDSP volume is automatically configured then ALSA volume will be at 0dB.
In this case if aplay is used to play the startup chime then watch for smoke coming out the tweeters ;-)