I've got a headless Rasberry Pi with a USB Sound Device. I want to play mp3 files with VLC.
aplay -l gives me
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 Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
And i try to start vlc this way(s)
cvlc --vout none --alsa-audio-device card\ 1 --play-and-exit sound.mp3
cvlc --vout none -aout usb --play-and-exit sound.mp3
cvlc --vout none --alsa-audio-device DEV=1 --play-and-exit sound.mp3
none worked.