I am facing a little issue while playing Audio with Pygame in my Python program.
Hardware: Raspberry Pi 2 Mod B
OS: OSMC
I need the audio to be played from the Audio/Headphone jack. In order to that in OSMC I have made a shell script that does changes the standard audio output from HDMI to Audio jack:
Code: Select all
sudo systemctl stop mediacenter
sed -i 's#<audiodevice default="true">PI:HDMI</audiodevice>#<audiodevice>PI:Analogue</audiodevice>#g' /home/osmc/.kodi/userdata/guisettings.xml
sudo systemctl start mediacenteroCan someone please help me identify the issue and fix it.