I have purchased a Pirate Audio 3W Stereo Amp to allow us to play steam train sound effects at our local Model Town. For many years, we’ve used an old boom box for this purpose, but it recently let us down. Since the Model Town now has around a dozen Raspberry Pis of various types running to deliver different functions, Pirate Audio seemed the way to go.
So having set it up using this Tutorial Pirate Audio, I copied a few tracks across and was able to play them using Mopidy and the Iris web client, However, what we want to do is much more basic than that; all we want is for the sound effects to start playing when the duty manager switches the player on in the morning and loop round until he/she switches it off.
I’ve been unable to see how to set up Mopidy to do that. Looking in the Iris Client with my browser, I can see that I can select ‘Play All’ and clicking ‘Repeat’ seems to provide the required looping functionality, but I’ve been unable to discover how to get this behaviour without first opening the Iris Client. Ideally, I’d like to simply start playback with a simple command which encapsulates the ‘Play All’ and ‘Repeat’ functionality in rc.local or similar.