Git Product home page Git Product logo

Comments (11)

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

Comment by joerg-krause
Saturday Mar 11, 2017 at 10:43 GMT


Try this:

pcm.!default {
type plughw
card 1
}

from librespot.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

Comment by joerg-krause
Saturday Mar 11, 2017 at 11:15 GMT


You are welcome!

from librespot.

sashahilton00 avatar sashahilton00 commented on May 27, 2024

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.

ComlOnline avatar ComlOnline commented on May 27, 2024

The last comment was a different issue. Closing as it was solved.

from librespot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.