Code Monkey home page Code Monkey logo

Comments (6)

bendschs avatar bendschs commented on May 23, 2024 1

ok nevermind, i found out i have to start librespot-java under user pi through lxterminal, then it‘s working. same old issue with pulseaudio starting as a user and not systemwide.

from spocon.

devgianlu avatar devgianlu commented on May 23, 2024

Did you have a look at https://github.com/librespot-org/librespot-java/tree/dev/player#audio-output-configuration?

from spocon.

bendschs avatar bendschs commented on May 23, 2024

ok, trying to investigate that. but where are the available mixer devices actually being logged?

log was already enabled in config.toml

"systemctl status spocon" gives me the following output:

● spocon.service - SpoCon
   Loaded: loaded (/lib/systemd/system/spocon.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-02-13 12:47:48 CET; 15min ago
  Process: 2102 ExecStartPre=/bin/sh -c until ping -c1 spotify.com; do sleep 5; done; (code=exited, status=0/SUCCESS)
 Main PID: 2104 (java)
    Tasks: 42 (limit: 3720)
   CGroup: /system.slice/spocon.service
           └─2104 /usr/bin/java -jar /opt/spocon/librespot-java-api-v1.5.4.jar

Feb 13 12:48:12 B2RASP4 java[2104]: 2021-02-13 12:48:12,547 TRACE DeviceStateHandler:154 - Update volume. {volume: 65535/65536}
Feb 13 12:48:12 B2RASP4 java[2104]: 2021-02-13 12:48:12,589 INFO  DeviceStateHandler:249 - Put state. {ts: 1613216891977, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:12 B2RASP4 java[2104]: 2021-02-13 12:48:12,865 INFO  DeviceStateHandler:249 - Put state. {ts: 1613216892140, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:13 B2RASP4 java[2104]: 2021-02-13 12:48:13,134 INFO  DeviceStateHandler:249 - Put state. {ts: 1613216892343, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:13 B2RASP4 java[2104]: 2021-02-13 12:48:13,412 INFO  DeviceStateHandler:249 - Put state. {ts: 1613216892549, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,007 TRACE DealerClient:97 - Received request. {mid: hm://connect-state/v1/player/command, key: a140e2f7-48cd
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,008 DEBUG Player:293 - Received command: Pause
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,013 DEBUG DealerClient:109 - Handled request. {key: xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx, result: SUCCESS}
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,282 INFO  DeviceStateHandler:249 - Put state. {ts: 1613216895009, connId: ZTkwO...1MTRE, reason: PLAYER_STAT
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,562 TRACE DeviceStateHandler:160 - Received cluster update at 1613216895553: cluster { timestamp: 1613216895

from spocon.

bendschs avatar bendschs commented on May 23, 2024

ok, i was able to filter the available devices by manually starting spocon:

2021-02-13 13:36:48,227 FATAL Player:600 - An error with the mixer occurred. This is likely a configuration issue, please consult the project repository.
xyz.gianlu.librespot.player.mixing.LineHelper$MixerException: Couldn't find a suitable mixer, openLine: 'interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian', available: [Port sndrpihifiberry [hw:0], version 5.10.11-v8+, sndrpihifiberry [plughw:0,0], version 5.10.11-v8+]

what would the suitable keywords be according to that?

from spocon.

devgianlu avatar devgianlu commented on May 23, 2024

Not entirely sure about which one you should use, but the keyword for the first one would be [hw:0] and [plughw:0,0] for the second one.

from spocon.

bendschs avatar bendschs commented on May 23, 2024

thx for the help!

from spocon.

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.