Moode Forum
librespot not open device correctly - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: librespot not open device correctly (/showthread.php?tid=742)



librespot not open device correctly - yejun - 12-05-2018

It seems librespot does not use correct sample rate with my USB dac. When I run librespot manually from command line with --device plughw:1, sample rate is set correctly.

Possible to add an option for plughw?


Code:
pi@moode:~ $ cat /proc/asound/card1/stream0
PS Audio Sprout100 at usb-3f980000.usb-1.2, high speed : USB Audio

Playback:
 Status: Running
   Interface = 1
   Altset = 1
   Packet Size = 72
   Momentary freq = 48000 Hz (0x6.0000)
   Feedback Format = 16.16
 Interface 1
   Altset 1
   Format: S32_LE
   Channels: 2
   Endpoint: 1 OUT (ASYNC)
   Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
   Data packet interval: 125 us
 Interface 1
   Altset 2
   Format: S16_LE
   Channels: 2
   Endpoint: 1 OUT (ASYNC)
   Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
   Data packet interval: 125 us
 Interface 1
   Altset 3
   Format: SPECIAL
   Channels: 2
   Endpoint: 1 OUT (ASYNC)
   Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
   Data packet interval: 125 us



RE: librespot not open device correctly - Tim Curtis - 12-05-2018

Thats interesting. I thought librespot only accepted the device name.

plughw could be used universally. I'll do some testing.