Raspberry Pi

From SGMK-SSAM-WIKI
Revision as of 17:28, 26 July 2014 by Stahl (talk | contribs) (Created page with " = Sound = Get a cheap USB soundcard: [http://www.aliexpress.com/snapshot/6085241515.html "Creative Sound Blaster"] List sound devices: <pre>cat /proc/asound/cards</pre> C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sound

Get a cheap USB soundcard: "Creative Sound Blaster"

List sound devices:

cat /proc/asound/cards

Change volume (select USB sound card with F6):

alsamixer

Save volume:

sudo alsactl store

Play wav file on external device:

aplay -D plughw:1,0 test.wav

JACK Audio Connection Kit

"Who is Jack, and what is it that Jack does?"

On a headless raspberry pi (assuming raspian distro), we need a trick to start jack WITHOUT an X session like so (replace U0x41e0x30d3 with your device name, that you get via the above mentioned command to list devices):

#!/bin/bash
export DISPLAY=:0
export `dbus-launch | grep ADDRESS`
/usr/bin/jackd -dalsa -dhw:U0x41e0x30d3 -r44100 -p1024 -n2