The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


librespot not open device correctly
#1
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
Reply


Messages In This Thread
librespot not open device correctly - by yejun - 12-05-2018, 08:19 AM

Forum Jump: