Fornoth / spotify-connect-web

MIT License
436 stars 65 forks source link

Forcing USB audio output #58

Closed mankowskiwik closed 8 years ago

mankowskiwik commented 8 years ago

Hello everybody,

I really need your help. I am unable to output audio to my Denon DA 300 USB DAC. Previously while running Volumio 1.55 based on Wheezy I was able to edit alsa-base.conf file and rearrange indexes to that usb sound card would get priority over HDMI and Analog.

Currently running newest OSMC (Jarvis 16.1) I am unable to force my DAC to be set as output (tried on Volumio 2 as well, same results). According to aplay -l output my DAC is card number 1. I have tried:

pcm.!default {
    type hw
    card 1
}

ctl.!default {
    type hw           
    card 1
}

Those solution do not work. In OSMC I can select DAC and it runs perfectly fine. For the rest it does not work.

Please advise. I am really stuck and have searched a lot, can't really find solution. Thanks! Wiktor

Fornoth commented 8 years ago

have you tried using --device or the new --playback_device option to specify your output device?

mankowskiwik commented 8 years ago

Thanks for the reply. Actually I have managed to solve this issue. Passing -Dplughw:DA300USB parameter solved my problem. However I don't quite understand what is the difference between one I used and --device hw:1 from previous attempts. Is it because its an usb DAC not a GPIO hifiberry and similar? Thanks!

BTW: this software is superbly cool. Currently I have OSMC, Plex, Deluge and spotify connect setup and its an amazing solution for my needs. Thanks for it!

Fornoth commented 8 years ago

I'm not sure, the --device parameter just tries to find the alsa device by guesswork (according to the pyalsaaudio docs) and you're welcome!

Fornoth commented 8 years ago

I'm gonna close this for now, feel free to re-open if you're still having problems