There is also a nice player called omxplayer.
omxplayer -o local --loop sound.mp3
The keyword "local" directs the sound to the GPIO pins you have chosen for audio instead of HDMI.
You may want to create a dt blob with the correct audio pin settings. I have an example at discohat.com/miscap.
Code: Select all
/* Audio */
fragment@5 {
target = <&audio_pins>;
__overlay__ {
brcm,pins = <12 13>;
brcm,function = <4>; /* alt0 */
};
};