samaaron/sonic-pi — pull request #188 by gbaman (2014-11-06 14:08:17+00:00)
Title: Add better support for older or weirdly

configured Pis.

By forcing the card number, allows Sonic Pi to better support older versions of Raspbian or other setups like Raspi-LTSP which currently (because of the slightly different soundcard setup) fails to work. This will make sure it uses the default BCM2835 card.
Method added is the exact same method used by Python-games
https://github.com/KenT2/python-games/blob/master/launcher.sh