Raspberry Pi - préparer la SD de base
Avec l'outil fourni par HIFI-Berry: on télécharge une version tweakée de Raspian qui route correctement le son vers la carte. Ca marche out-of-the-box. https://www.hifiberry.com/guides/hifiberry-installer/
La piste de départ, qui marche bien pour jouer 1 seul morceau : http://olivierpfeiffer.net/rpi-player-audio-osc/
J'ai testé python-VLC, qui ne veut pas jouer le son car il y'a un problème de routage dans ALSA. A approfondir. To do: tester tous ceux là :) http://guzalexander.com/2012/08/17/playing-a-sound-with-python.html
https://github.com/yomguy/PiPlayer
http://raspberrypi.stackexchange.com/questions/639/how-to-get-pulseaudio-running
sudo apt-get install pulseaudio
Configure GStreamer to use the pulseaudio sink:
gconftool-2 -t string –set /system/gstreamer/0.10/default/audiosink pulsesink
Load the kernel module for the audio device
sudo modprobe snd_bcm2835
Run VLC with an mp3
vlc
Possible de jouer deux VLC en même temps, déclenchés par des commandes OSC music_osc3.py.zip