Comments (11)
Comment by joerg-krause
Saturday Mar 11, 2017 at 10:19 GMT
Looks like your ALSA device does not support the sample format S16_LE
.
from librespot.
Comment by archphile
Saturday Mar 11, 2017 at 10:21 GMT
My device is:
ard 1, ID DAC', name
S16 USB DAC'
Device 0, ID USB Audio', name
USB Audio', 1 subdevices (1 available)
2 channels, sampling rate 44100..384000 Hz
Sample formats: S32_LE
Subdevice 0, name `subdevice #0'
and indeed does not support S16_LE.
So I assume there's no solution to this?
Many thanks for your immediate reply.
from librespot.
Comment by joerg-krause
Saturday Mar 11, 2017 at 10:24 GMT
You can set the ALSA device with the --device
option. Try --device=plughw:1
.
from librespot.
Comment by archphile
Saturday Mar 11, 2017 at 10:28 GMT
Thank you very much, it works!
I am trying to find a more generic approach so that librespot uses the default alsa device. Is there any possibility to do this?
from librespot.
Comment by joerg-krause
Saturday Mar 11, 2017 at 10:35 GMT
librespot does use the default device. Your default device does not support S16_LE. If you do not want to set the device with --device
you have to make plughw:1
your default ALSA device. You can set this in ALSA config file. Google will help you 😄
from librespot.
Comment by archphile
Saturday Mar 11, 2017 at 10:40 GMT
Many thanks for everything.
I have already created an asound.conf file with the following configuration:
pcm.!default {
type hw
card 1
}
As it seems I have to search more for this.
from librespot.
Comment by joerg-krause
Saturday Mar 11, 2017 at 10:43 GMT
Try this:
pcm.!default {
type plughw
card 1
}
from librespot.
Comment by archphile
Saturday Mar 11, 2017 at 11:11 GMT
Thank you very much for everything Joerg.
Everything is up and running buy adding the device option on the systemd.service file.
from librespot.
Comment by joerg-krause
Saturday Mar 11, 2017 at 11:15 GMT
You are welcome!
from librespot.
Comment by arthurlutz
Thursday Nov 16, 2017 at 20:45 GMT
am getting this too, but with a FiiO USB DAC adding --device=plughw:1
doesn't fix it. See my report on pimusicbox through which I am using librespot pimusicbox/pimusicbox#453
from librespot.
The last comment was a different issue. Closing as it was solved.
from librespot.
Related Issues (20)
- Music stops abruptly when playing long playlists HOT 1
- librespot / SPIRC crashed in the middle of the night HOT 4
- [Feature Request] Allow downloading of playlists for listening offline HOT 2
- Authentication on all desktop platforms is broken HOT 1
- Android Hashcash Not working? HOT 1
- New Stream reporting payload (Mercury)
- support for setting volume directly in addition to volume up/down HOT 1
- Librespot instance not shown in latest android/web spotify app HOT 5
- High CPU usage and stutter for some songs HOT 1
- get_extended_metadata HOT 3
- Home screen empty HOT 1
- Unable to get client token HOT 2
- translation of lyrics HOT 1
- Librespot causing Spocon to pause/not work? HOT 2
- Support additionnal SpotifyUri types HOT 2
- Can't play new songs (released on current day). Automatically skipping. HOT 1
- Librespot playback won't work HOT 1
- sound volume issue librespot/snapserver HOT 1
- Segmentation fault when running static build with `with-dns-sd`
- librespot unable to play songs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librespot.