Got everything up and running using the onboard audio jack.
Ordered and plugged in a small USB Audio jack, but I can't get it to work.
System ids and recognizes the USB Audio device, but I can't get audio to route to it.
aplay -l output:
List of PLAYBACK Hardware Devices
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
configured /usr/share/alsa/alsa.conf with the following lines:
defaults.ctl.card 1
defaults.pcm.card 1
When i set the AUDIO_DEVICE_ID = 2 and then try to run python samplebox.py I get
'Invalid audio device #2'
same result with 3
1 seems to be working, but not to the USB audio device... maybe that is HDMI?
not sure what to try next, thanks for your help in advance.