Hi,
I’m trying to get PiMusicbox v0.5.2 working with the PiTFT resistive screen. Followed the instructions from:
ISO-B/pmb-pitft
Everything seems to work (I’m doing this on a remote location, no USB-DAC attached at the PiMUSICBOX) but as soon as I connect the USB Audio DAC I get the error:
ERROR GStreamer error: state change failed and some element failed to
post a proper error message with the reason for the failure.
Debug message: gstplaysink.c(1899): gen_audio_chain ():
/GstPlayBin2:playbin20/GstPlaySink:playsink0
The display and the pmb-pitft script (ui.py) still work, but no sound…
Can anyone help me or point me in the right direction?
Hello.
There was a similar case in another extension that also uses pygame. It seems that pygame takes full control of the sound card and mopidy is not able to use it.
The solution was to add some variables. I am not sure if your problem is the same but you can try the same solution. Find in ui.py these lines
# OS enviroment variables for pitft
os.environ["SDL_FBDEV"] = "/dev/fb1"
os.environ["SDL_MOUSEDEV"] = "/dev/input/touchscreen"
os.environ["SDL_MOUSEDRV"] = "TSLIB"