Hi
I am using a Pi2 with Jessie setup to use a 2.8" TFT Touch display.
Pygame come installed and I did update to the latest version.
I installed two different internet radio players that make use of a subprocess call to control MPC / MPD player. Here is the strange thing that both applications experience.When loaded first time I can hear the sound being activated but no sound is produced. The MPC output reports the app functioning correctly and playing. If I quit the application the sound will be produced. MPD is a daemon loaded at boot time and PMC is a frontend to comtrol MPD. It has simple commands to play stop set volume etc. It reports the successful actions as they are executed throughout. If I load the python ap from a SSH terminal (remote) it now plays and controls the player correctly. All the functions work on the first load but no sound is produced.
The app is load with this script
#!/bin/sh
cd /home/pi/pi-radio
sudo python radioplayer.py
and I put a call to the script in the /etc/rc.local file at the end.
Anyone that can shed some light please?