please help with service audiofile

I get sound in raspi if force audio jack with omxplayer -o -local test.mp3 but not sounds with service of mrl audiofile and this script:

audiofile = Runtime.createAndStart("audiofile","AudioFile")

audiofile.playfile("/home/pi/Desktop/Mrl/ejemplos/test.mp3")

 

Mats's picture

Audio on Raspberry

I havent tested, but I remember that there is an option in raspi-config to force the sound outut to the 3.5 jack.

More details here:

https://www.raspberrypi.org/documentation/configuration/raspi-config.md

 

mecax's picture

it's solved

it's solved