[GH-ISSUE #835] Sound is distorted when using Rodio on Alsa #421

Closed
opened 2026-02-27 19:30:31 +03:00 by kerem · 10 comments
Owner

Originally created by @stargazer on GitHub (Aug 12, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/835

Originally assigned to: @roderickvd on GitHub.

i have librespot set up on a raspberry pi 3 with HiFiberry.
All of a sudden, the sound has become very distorted and noisy, making it essentially unlistenable. It's almost like listening to a very scratched and badly produced vinyl.

The exact build i'm running is librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl).
I run librespot with these parameters:

/usr/local/bin/librespot --name HifiBerry --bitrate 320 --initial-volume=100 --disable-audio-cache --verbose

I've also tried a few different switches like --volume-ctrl linear, --enable-volume-normalisation, --normalisation-pregain, but the sound is still the same.

Here's some logs
Aug 12 03:35:04 moode systemd[1]: Started Librespot service..
Aug 12 03:35:04 moode librespot[7241]: [2021-08-12T07:35:04Z INFO  librespot] librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl)
Aug 12 03:35:04 moode librespot[7241]: [2021-08-12T07:35:04Z DEBUG librespot_connect::discovery] Zeroconf server listening on 0.0.0.0:45629
Aug 12 03:43:06 moode systemd[1]: Stopping Librespot service....
Aug 12 03:43:06 moode systemd[1]: librespot.service: Main process exited, code=killed, status=15/TERM
Aug 12 03:43:06 moode systemd[1]: librespot.service: Succeeded.
Aug 12 03:43:06 moode systemd[1]: Stopped Librespot service..
Aug 12 03:43:35 moode systemd[1]: Started Librespot service..
Aug 12 03:43:35 moode librespot[8761]: [2021-08-12T07:43:35Z INFO  librespot] librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl)
Aug 12 03:43:35 moode librespot[8761]: [2021-08-12T07:43:35Z DEBUG librespot_connect::discovery] Zeroconf server listening on 0.0.0.0:36335
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::discovery] POST "/" {}
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO  librespot_core::session] Connecting to AP "gew1-accesspoint-a-20z4.ap.spotify.com:4070"
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO  librespot_core::session] Authenticated as "<username>" !
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::session] new Session[0]
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::player] new Player[0]
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO  librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO  librespot_playback::audio_backend::rodio] Using audio device: default
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::spirc] new Spirc[0]
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::spirc] canonical_username: <username>
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::mercury] new MercuryManager
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::session] Session[0] strong=3 weak=2
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO  librespot_core::session] Country: "CY"
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/<username>/ count=0
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::player] command=AddEventSender
Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::player] command=VolumeSet(65535)
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] kMessageTypeNotify "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961639476 1628754243902 kPlayStatusStop
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] kMessageTypeNotify "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 961639476 1628754243902 kPlayStatusStop
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] kMessageTypeLoad "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961639655 1628754243902 kPlayStatusPause
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] State: context_uri: "spotify:search:rohmer" index: 0 position_ms: 4842 status: kPlayStatusPause position_measured_at: 1628754244165 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 0 track {gid: "\236L\22559\007BX\201\"s\325\350\271\377\213"}
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] Frame has 1 tracks
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 210415664191038333522833340190816862091, audio_type: Track }, false, 4842)
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z INFO  librespot_playback::player] Loading <Éric Rohmer est mort> with Spotify URI <spotify:track:4OHMJQFXqaDV2YJN6B8Iwb>
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_audio::fetch] Downloading file 89c0b8abc3e66dda2e18c2c4274d3c3c5a82c5e2
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_core::channel] new ChannelManager
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_core::audio_key] new AudioKeyManager
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 182 ms.
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: -8.290001, track_peak: 1.0061948, album_gain_db: -7.300003, album_peak: 1.0197407 }
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Type: Album
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Threshold: -1.0
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Method: Dynamic
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Factor: 0.4315189
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Attack: 0.005
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Release: 0.1
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Knee: 1.0
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 89 ms.
Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 85 ms.
Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms.
Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z INFO  librespot_playback::player] <Éric Rohmer est mort> (174053 ms) loaded
Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_connect::spirc] ==> kPlayStatusPause
Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms.
Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z DEBUG librespot_connect::spirc] kMessageTypePlay "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961644249 1628754246208 kPlayStatusPause
Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z DEBUG librespot_playback::player] command=Play
Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_playback::player] == Starting sink ==
Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 03:44:10 moode librespot[8761]: [2021-08-12T07:44:10Z DEBUG librespot_connect::spirc] kMessageTypeSeek "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961645972 1628754248814 kPlayStatusPlay
Aug 12 03:44:10 moode librespot[8761]: [2021-08-12T07:44:10Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:10 moode librespot[8761]: [2021-08-12T07:44:10Z DEBUG librespot_playback::player] command=Seek(29202)
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 88 ms.
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 93 ms.
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961647452 1628754251648 kPlayStatusStop
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z DEBUG librespot_connect::spirc] input volume:63487 to mixer: 52823
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z DEBUG librespot_playback::player] command=VolumeSet(63487)
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961647874 1628754252076 kPlayStatusStop
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] input volume:62463 to mixer: 47418
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_playback::player] command=VolumeSet(62463)
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961648267 1628754252515 kPlayStatusStop
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] input volume:55295 to mixer: 22274
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_playback::player] command=VolumeSet(55295)
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961648671 1628754252899 kPlayStatusStop
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] input volume:47103 to mixer: 9392
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_playback::player] command=VolumeSet(47103)
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961649057 1628754253279 kPlayStatusStop
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] input volume:40959 to mixer: 4914
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_playback::player] command=VolumeSet(40959)
Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961649874 1628754253664 kPlayStatusStop
Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z DEBUG librespot_connect::spirc] input volume:39935 to mixer: 4412
Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z DEBUG librespot_playback::player] command=VolumeSet(39935)
Aug 12 03:44:17 moode librespot[8761]: [2021-08-12T07:44:17Z DEBUG librespot_connect::spirc] kMessageTypeSeek "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961653135 1628754254500 kPlayStatusPlay
Aug 12 03:44:17 moode librespot[8761]: [2021-08-12T07:44:17Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:17 moode librespot[8761]: [2021-08-12T07:44:17Z DEBUG librespot_playback::player] command=Seek(86640)
Aug 12 03:44:18 moode librespot[8761]: [2021-08-12T07:44:18Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 88 ms.
Aug 12 03:44:18 moode librespot[8761]: [2021-08-12T07:44:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 03:44:18 moode librespot[8761]: [2021-08-12T07:44:18Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z DEBUG librespot_connect::spirc] kMessageTypePause "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961655165 1628754258584 kPlayStatusPlay
Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z DEBUG librespot_playback::player] command=Pause
Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_playback::player] == Stopping sink ==
Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_connect::spirc] ==> kPlayStatusPause
Aug 12 03:44:30 moode librespot[8761]: [2021-08-12T07:44:30Z DEBUG librespot_audio::fetch] File 89c0b8abc3e66dda2e18c2c4274d3c3c5a82c5e2 complete, saving to cache

Thanks in advance :)

Originally created by @stargazer on GitHub (Aug 12, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/835 Originally assigned to: @roderickvd on GitHub. i have librespot set up on a raspberry pi 3 with HiFiberry. All of a sudden, the sound has become very distorted and noisy, making it essentially unlistenable. It's almost like listening to a very scratched and badly produced vinyl. The exact build i'm running is `librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl)`. I run `librespot` with these parameters: ```shell /usr/local/bin/librespot --name HifiBerry --bitrate 320 --initial-volume=100 --disable-audio-cache --verbose ``` I've also tried a few different switches like `--volume-ctrl linear`, `--enable-volume-normalisation`, `--normalisation-pregain`, but the sound is still the same. <details> <summary>Here's some logs</summary> ```bash Aug 12 03:35:04 moode systemd[1]: Started Librespot service.. Aug 12 03:35:04 moode librespot[7241]: [2021-08-12T07:35:04Z INFO librespot] librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl) Aug 12 03:35:04 moode librespot[7241]: [2021-08-12T07:35:04Z DEBUG librespot_connect::discovery] Zeroconf server listening on 0.0.0.0:45629 Aug 12 03:43:06 moode systemd[1]: Stopping Librespot service.... Aug 12 03:43:06 moode systemd[1]: librespot.service: Main process exited, code=killed, status=15/TERM Aug 12 03:43:06 moode systemd[1]: librespot.service: Succeeded. Aug 12 03:43:06 moode systemd[1]: Stopped Librespot service.. Aug 12 03:43:35 moode systemd[1]: Started Librespot service.. Aug 12 03:43:35 moode librespot[8761]: [2021-08-12T07:43:35Z INFO librespot] librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl) Aug 12 03:43:35 moode librespot[8761]: [2021-08-12T07:43:35Z DEBUG librespot_connect::discovery] Zeroconf server listening on 0.0.0.0:36335 Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::discovery] POST "/" {} Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-20z4.ap.spotify.com:4070" Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO librespot_core::session] Authenticated as "<username>" ! Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::session] new Session[0] Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::player] new Player[0] Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO librespot_playback::audio_backend::rodio] Using audio device: default Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::spirc] new Spirc[0] Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::spirc] canonical_username: <username> Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::mercury] new MercuryManager Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535 Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::session] Session[0] strong=3 weak=2 Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z INFO librespot_core::session] Country: "CY" Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/<username>/ count=0 Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::player] command=AddEventSender Aug 12 03:44:03 moode librespot[8761]: [2021-08-12T07:44:03Z DEBUG librespot_playback::player] command=VolumeSet(65535) Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] kMessageTypeNotify "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961639476 1628754243902 kPlayStatusStop Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] kMessageTypeNotify "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 961639476 1628754243902 kPlayStatusStop Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] kMessageTypeLoad "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961639655 1628754243902 kPlayStatusPause Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] State: context_uri: "spotify:search:rohmer" index: 0 position_ms: 4842 status: kPlayStatusPause position_measured_at: 1628754244165 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 0 track {gid: "\236L\22559\007BX\201\"s\325\350\271\377\213"} Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_connect::spirc] Frame has 1 tracks Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 210415664191038333522833340190816862091, audio_type: Track }, false, 4842) Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z INFO librespot_playback::player] Loading <Éric Rohmer est mort> with Spotify URI <spotify:track:4OHMJQFXqaDV2YJN6B8Iwb> Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_audio::fetch] Downloading file 89c0b8abc3e66dda2e18c2c4274d3c3c5a82c5e2 Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_core::channel] new ChannelManager Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_core::audio_key] new AudioKeyManager Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 182 ms. Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: -8.290001, track_peak: 1.0061948, album_gain_db: -7.300003, album_peak: 1.0197407 } Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Type: Album Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Threshold: -1.0 Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Method: Dynamic Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Factor: 0.4315189 Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Attack: 0.005 Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Release: 0.1 Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z DEBUG librespot_playback::player] Normalisation Knee: 1.0 Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 89 ms. Aug 12 03:44:04 moode librespot[8761]: [2021-08-12T07:44:04Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 85 ms. Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms. Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z INFO librespot_playback::player] <Éric Rohmer est mort> (174053 ms) loaded Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_connect::spirc] ==> kPlayStatusPause Aug 12 03:44:06 moode librespot[8761]: [2021-08-12T07:44:06Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms. Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z DEBUG librespot_connect::spirc] kMessageTypePlay "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961644249 1628754246208 kPlayStatusPause Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z DEBUG librespot_playback::player] command=Play Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_playback::player] == Starting sink == Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 03:44:08 moode librespot[8761]: [2021-08-12T07:44:08Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 03:44:10 moode librespot[8761]: [2021-08-12T07:44:10Z DEBUG librespot_connect::spirc] kMessageTypeSeek "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961645972 1628754248814 kPlayStatusPlay Aug 12 03:44:10 moode librespot[8761]: [2021-08-12T07:44:10Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:10 moode librespot[8761]: [2021-08-12T07:44:10Z DEBUG librespot_playback::player] command=Seek(29202) Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 88 ms. Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 93 ms. Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961647452 1628754251648 kPlayStatusStop Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z DEBUG librespot_connect::spirc] input volume:63487 to mixer: 52823 Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:11 moode librespot[8761]: [2021-08-12T07:44:11Z DEBUG librespot_playback::player] command=VolumeSet(63487) Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961647874 1628754252076 kPlayStatusStop Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] input volume:62463 to mixer: 47418 Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_playback::player] command=VolumeSet(62463) Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961648267 1628754252515 kPlayStatusStop Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_connect::spirc] input volume:55295 to mixer: 22274 Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:12 moode librespot[8761]: [2021-08-12T07:44:12Z DEBUG librespot_playback::player] command=VolumeSet(55295) Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961648671 1628754252899 kPlayStatusStop Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] input volume:47103 to mixer: 9392 Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_playback::player] command=VolumeSet(47103) Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961649057 1628754253279 kPlayStatusStop Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_connect::spirc] input volume:40959 to mixer: 4914 Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:13 moode librespot[8761]: [2021-08-12T07:44:13Z DEBUG librespot_playback::player] command=VolumeSet(40959) Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z DEBUG librespot_connect::spirc] kMessageTypeVolume "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961649874 1628754253664 kPlayStatusStop Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z DEBUG librespot_connect::spirc] input volume:39935 to mixer: 4412 Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:14 moode librespot[8761]: [2021-08-12T07:44:14Z DEBUG librespot_playback::player] command=VolumeSet(39935) Aug 12 03:44:17 moode librespot[8761]: [2021-08-12T07:44:17Z DEBUG librespot_connect::spirc] kMessageTypeSeek "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961653135 1628754254500 kPlayStatusPlay Aug 12 03:44:17 moode librespot[8761]: [2021-08-12T07:44:17Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:17 moode librespot[8761]: [2021-08-12T07:44:17Z DEBUG librespot_playback::player] command=Seek(86640) Aug 12 03:44:18 moode librespot[8761]: [2021-08-12T07:44:18Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 88 ms. Aug 12 03:44:18 moode librespot[8761]: [2021-08-12T07:44:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 03:44:18 moode librespot[8761]: [2021-08-12T07:44:18Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z DEBUG librespot_connect::spirc] kMessageTypePause "OnePlus 8" a25b818c880075133ed9f6b3f43e96f07f72aa8f 961655165 1628754258584 kPlayStatusPlay Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z DEBUG librespot_playback::player] command=Pause Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_playback::player] == Stopping sink == Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 03:44:19 moode librespot[8761]: [2021-08-12T07:44:19Z TRACE librespot_connect::spirc] ==> kPlayStatusPause Aug 12 03:44:30 moode librespot[8761]: [2021-08-12T07:44:30Z DEBUG librespot_audio::fetch] File 89c0b8abc3e66dda2e18c2c4274d3c3c5a82c5e2 complete, saving to cache ``` </details> Thanks in advance :)
kerem 2026-02-27 19:30:31 +03:00
Author
Owner

@roderickvd commented on GitHub (Aug 12, 2021):

I think the logs you posted were launched with different parameters? I see normalisation is enabled, but that's not in your command line above.

  1. What are your exact command line options belonging to that log?
  2. Does it still occur with --normalisation-method basic?
  3. Are you running the 0.2.0 crate or have you compiled from source?
  4. Please try compiling from he latest source, is it now fixed?

The issue sounds like #745 but that should only apply when using the 0.2.0 crate as a library, and that's not your case is it?

<!-- gh-comment-id:897494724 --> @roderickvd commented on GitHub (Aug 12, 2021): I think the logs you posted were launched with different parameters? I see normalisation is enabled, but that's not in your command line above. 1. What are your exact command line options belonging to that log? 2. Does it still occur with `--normalisation-method basic`? 2. Are you running the 0.2.0 crate or have you compiled from source? 3. Please try compiling from he latest source, is it now fixed? The issue sounds like #745 but that should only apply when using the 0.2.0 crate as a library, and that's not your case is it?
Author
Owner

@stargazer commented on GitHub (Aug 12, 2021):

Hi @roderickvd and thanks for the prompt reply!

What are your exact command line options belonging to that log?

This is the exact service that starts librespot. As you can see the command line options are the ones I posted earlier.

Does it still occur with --normalisation-method basic?

Just tried it and indeed, the sound is still very distorted

Are you running the 0.2.0 crate or have you compiled from source?

I compile from source. This is the exact way.

Please try compiling from he latest source, is it now fixed?

Shall I use the source code from the dev branch? Currently I'm running the executable after compiling the tarball from release 0.2.0

The issue sounds like #745 but that should only apply when using the 0.2.0 crate as a library, and that's not your case is it?

No I use the librespot executable.

Here is another instance of the logs, using the aforementioned service to start librespot

-- Logs begin at Thu 2021-08-12 06:32:56 EDT. --
Aug 12 06:33:30 moode systemd[1]: Started Librespot service..
Aug 12 06:33:30 moode librespot[492]: [2021-08-12T10:33:30Z INFO librespot] librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl)
Aug 12 06:33:30 moode librespot[492]: [2021-08-12T10:33:30Z DEBUG librespot_connect::discovery] Zeroconf server listening on 0.0.0.0:37459
Aug 12 06:44:59 moode librespot[492]: [2021-08-12T10:44:59Z DEBUG librespot_connect::discovery] POST "/" {}
Aug 12 06:44:59 moode librespot[492]: [2021-08-12T10:44:59Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-5kvs.ap.spotify.com:4070"
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_core::session] Authenticated as "" !
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::session] new Session[0]
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] new Spirc[0]
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] canonical_username:
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] new Player[0]
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::mercury] new MercuryManager
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_playback::audio_backend::rodio] Using audio device: default
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::session] Session[0] strong=3 weak=2
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_core::session] Country: "CY"
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user// count=0
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] command=AddEventSender
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] command=VolumeSet(65535)
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] kMessageTypeNotify "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972495842 1628765100268 kPlayStatusStop
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] kMessageTypeLoad "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972495999 1628765100268 kPlayStatusPause
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] State: context_uri: "spotify:album:6GB9bBNGojMgArV4PiSPbS" index: 2 position_ms: 68907 status: kPlayStatusPause position_measured_at: 1628765100507 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 2 track {gid: "K\262+'ohJ\306\262;\020\245\034\253\267{"} track {gid: "\n\355p\376\312\270J\220\204\246M\222\nk{\237"} track {gid: "\333\314T\000+\rJ\307\214Y+\007s\035R\327"} track {gid: "y\007)\357\3261E\310\213#0\320\250\360X\302"} track {gid: "\n\323\366_#qDY\230\266\365&\334\251\251\373"} track {gid: "\355\002c\327\263\277M3\206\327\272\346\272\371V2"} track {gid: "\217\2700>\013tH\327\267L$\364\272\311\302\270"} track {gid: "@d3w\2454I]\230\262\2571\266^'7"} track {gid: "F7\204\326\017\024B\355\257\320\252\302i\246\232~"} track {gid: "O\007\252\360\255\253G,\247\241\223=\253\227\273\362"} track {gid: "E\026\220\020\022\247M\370\221\245D\242Tl\035\237"}
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] Frame has 11 tracks
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 292161863371768312336577371927280964311, audio_type: Track }, false, 68907)
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:6GKHgrk3Z2XAiwnIVgBqSz
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_audio::fetch] Downloading file aae8f777ae27acb890093a32c9d2dcbe849153e8
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::channel] new ChannelManager
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::audio_key] new AudioKeyManager
Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 89 ms.
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: -7.989998, track_peak: 1.0248911, album_gain_db: -7.2699966, album_peak: 1.0315394 }
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Type: Album
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Threshold: -1.0
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Method: Dynamic
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Factor: 0.43301225
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Attack: 0.005
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Release: 0.1
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Knee: 1.0
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms.
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms.
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms.
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 89 ms.
Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 86 ms.
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 96 ms.
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 94 ms.
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 86 ms.
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 83 ms.
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z INFO librespot_playback::player] (221600 ms) loaded
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_connect::spirc] ==> kPlayStatusPause
Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 86 ms.
Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z DEBUG librespot_connect::spirc] kMessageTypePlay "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972507015 1628765102461 kPlayStatusPause
Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z DEBUG librespot_playback::player] command=Play
Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_playback::player] == Starting sink ==
Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z DEBUG librespot_connect::spirc] kMessageTypePause "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972507962 1628765111625 kPlayStatusPlay
Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z DEBUG librespot_playback::player] command=Pause
Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_playback::player] == Stopping sink ==
Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_connect::spirc] ==> kPlayStatusPause
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_connect::spirc] kMessageTypePlay "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972510797 1628765112625 kPlayStatusPause
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_playback::player] command=Play
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_playback::player] == Starting sink ==
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972511465 1628765115448 kPlayStatusStop
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_connect::spirc] input volume:18321 to mixer: 452
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_playback::player] command=VolumeSet(18321)
Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972512729 1628765116065 kPlayStatusStop
Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z DEBUG librespot_connect::spirc] input volume:35938 to mixer: 2895
Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z DEBUG librespot_playback::player] command=VolumeSet(35938)
Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972513923 1628765117364 kPlayStatusStop
Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z DEBUG librespot_connect::spirc] input volume:50736 to mixer: 13775
Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z DEBUG librespot_playback::player] command=VolumeSet(50736)
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972515129 1628765118491 kPlayStatusStop
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] input volume:52146 to mixer: 15982
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_playback::player] command=VolumeSet(52146)
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972515476 1628765118491 kPlayStatusStop
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_playback::player] command=VolumeSet(65535)
Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z DEBUG librespot_connect::spirc] kMessageTypePause "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972516207 1628765120080 kPlayStatusPlay
Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z DEBUG librespot_playback::player] command=Pause
Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_playback::player] == Stopping sink ==
Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_connect::spirc] ==> kPlayStatusPause

Thanks again @roderickvd :)

<!-- gh-comment-id:897536919 --> @stargazer commented on GitHub (Aug 12, 2021): Hi @roderickvd and thanks for the prompt reply! > What are your exact command line options belonging to that log? [This](https://github.com/stargazer/raspbian-hifiberry-librespot/blob/master/librespot.service) is the exact service that starts `librespot`. As you can see the command line options are the ones I posted earlier. > Does it still occur with --normalisation-method basic? Just tried it and indeed, the sound is still very distorted > Are you running the 0.2.0 crate or have you compiled from source? I compile from source. [This](https://github.com/stargazer/raspbian-hifiberry-librespot/blob/d65f504aec5385c52af76efeb0279ac94c6e9256/Makefile#L30) is the exact way. > Please try compiling from he latest source, is it now fixed? Shall I use the source code from the `dev` branch? Currently I'm running the executable after compiling the tarball from release 0.2.0 > The issue sounds like #745 but that should only apply when using the 0.2.0 crate as a library, and that's not your case is it? No I use the `librespot` executable. <details> <summary>Here is another instance of the logs, using the aforementioned service to start librespot</summary> -- Logs begin at Thu 2021-08-12 06:32:56 EDT. -- Aug 12 06:33:30 moode systemd[1]: Started Librespot service.. Aug 12 06:33:30 moode librespot[492]: [2021-08-12T10:33:30Z INFO librespot] librespot 0.2.0 d65f504 (Built on 2021-08-05, Build ID: g5mmH7Vl) Aug 12 06:33:30 moode librespot[492]: [2021-08-12T10:33:30Z DEBUG librespot_connect::discovery] Zeroconf server listening on 0.0.0.0:37459 Aug 12 06:44:59 moode librespot[492]: [2021-08-12T10:44:59Z DEBUG librespot_connect::discovery] POST "/" {} Aug 12 06:44:59 moode librespot[492]: [2021-08-12T10:44:59Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-5kvs.ap.spotify.com:4070" Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_core::session] Authenticated as "<username>" ! Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::session] new Session[0] Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] new Spirc[0] Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] canonical_username: <username> Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] new Player[0] Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::mercury] new MercuryManager Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_playback::audio_backend::rodio] Using audio device: default Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535 Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::session] Session[0] strong=3 weak=2 Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_core::session] Country: "CY" Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/<username>/ count=0 Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] command=AddEventSender Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] command=VolumeSet(65535) Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] kMessageTypeNotify "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972495842 1628765100268 kPlayStatusStop Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] kMessageTypeLoad "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972495999 1628765100268 kPlayStatusPause Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] State: context_uri: "spotify:album:6GB9bBNGojMgArV4PiSPbS" index: 2 position_ms: 68907 status: kPlayStatusPause position_measured_at: 1628765100507 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 2 track {gid: "K\262+'ohJ\306\262;\020\245\034\253\267{"} track {gid: "\n\355p\376\312\270J\220\204\246M\222\nk{\237"} track {gid: "\333\314T\000+\rJ\307\214Y+\007s\035R\327"} track {gid: "y\007)\357\3261E\310\213#0\320\250\360X\302"} track {gid: "\n\323\366_#qDY\230\266\365&\334\251\251\373"} track {gid: "\355\002c\327\263\277M3\206\327\272\346\272\371V2"} track {gid: "\217\2700>\013tH\327\267L$\364\272\311\302\270"} track {gid: "@d3w\2454I]\230\262\2571\266^'7"} track {gid: "F7\204\326\017\024B\355\257\320\252\302i\246\232~"} track {gid: "O\007\252\360\255\253G,\247\241\223=\253\227\273\362"} track {gid: "E\026\220\020\022\247M\370\221\245D\242Tl\035\237"} Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_connect::spirc] Frame has 11 tracks Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 292161863371768312336577371927280964311, audio_type: Track }, false, 68907) Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z INFO librespot_playback::player] Loading <Sur les horodateurs> with Spotify URI <spotify:track:6GKHgrk3Z2XAiwnIVgBqSz> Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_audio::fetch] Downloading file aae8f777ae27acb890093a32c9d2dcbe849153e8 Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::channel] new ChannelManager Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z DEBUG librespot_core::audio_key] new AudioKeyManager Aug 12 06:45:00 moode librespot[492]: [2021-08-12T10:45:00Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 89 ms. Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: -7.989998, track_peak: 1.0248911, album_gain_db: -7.2699966, album_peak: 1.0315394 } Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Type: Album Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Threshold: -1.0 Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Method: Dynamic Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Factor: 0.43301225 Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Attack: 0.005 Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Release: 0.1 Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z DEBUG librespot_playback::player] Normalisation Knee: 1.0 Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms. Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms. Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87 ms. Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 89 ms. Aug 12 06:45:01 moode librespot[492]: [2021-08-12T10:45:01Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 86 ms. Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 96 ms. Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 94 ms. Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 86 ms. Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 83 ms. Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z INFO librespot_playback::player] <Sur les horodateurs> (221600 ms) loaded Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_connect::spirc] ==> kPlayStatusPause Aug 12 06:45:02 moode librespot[492]: [2021-08-12T10:45:02Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 86 ms. Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z DEBUG librespot_connect::spirc] kMessageTypePlay "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972507015 1628765102461 kPlayStatusPause Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z DEBUG librespot_playback::player] command=Play Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_playback::player] == Starting sink == Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 06:45:11 moode librespot[492]: [2021-08-12T10:45:11Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z DEBUG librespot_connect::spirc] kMessageTypePause "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972507962 1628765111625 kPlayStatusPlay Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z DEBUG librespot_playback::player] command=Pause Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_playback::player] == Stopping sink == Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:12 moode librespot[492]: [2021-08-12T10:45:12Z TRACE librespot_connect::spirc] ==> kPlayStatusPause Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_connect::spirc] kMessageTypePlay "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972510797 1628765112625 kPlayStatusPause Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_playback::player] command=Play Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_playback::player] == Starting sink == Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972511465 1628765115448 kPlayStatusStop Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_connect::spirc] input volume:18321 to mixer: 452 Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:15 moode librespot[492]: [2021-08-12T10:45:15Z DEBUG librespot_playback::player] command=VolumeSet(18321) Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972512729 1628765116065 kPlayStatusStop Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z DEBUG librespot_connect::spirc] input volume:35938 to mixer: 2895 Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:17 moode librespot[492]: [2021-08-12T10:45:17Z DEBUG librespot_playback::player] command=VolumeSet(35938) Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972513923 1628765117364 kPlayStatusStop Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z DEBUG librespot_connect::spirc] input volume:50736 to mixer: 13775 Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:18 moode librespot[492]: [2021-08-12T10:45:18Z DEBUG librespot_playback::player] command=VolumeSet(50736) Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972515129 1628765118491 kPlayStatusStop Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] input volume:52146 to mixer: 15982 Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_playback::player] command=VolumeSet(52146) Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972515476 1628765118491 kPlayStatusStop Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535 Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 06:45:19 moode librespot[492]: [2021-08-12T10:45:19Z DEBUG librespot_playback::player] command=VolumeSet(65535) Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z DEBUG librespot_connect::spirc] kMessageTypePause "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 972516207 1628765120080 kPlayStatusPlay Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z DEBUG librespot_playback::player] command=Pause Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_playback::player] == Stopping sink == Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 06:45:20 moode librespot[492]: [2021-08-12T10:45:20Z TRACE librespot_connect::spirc] ==> kPlayStatusPause </details> Thanks again @roderickvd :)
Author
Owner

@roderickvd commented on GitHub (Aug 12, 2021):

Yes please try compiling from dev.

<!-- gh-comment-id:897538670 --> @roderickvd commented on GitHub (Aug 12, 2021): Yes please try compiling from `dev`.
Author
Owner

@stargazer commented on GitHub (Aug 12, 2021):

Hi @roderickvd, I have compiled from dev as you suggested. The sound is still distorted, same as before.

Here are some logs from this run
Aug 12 07:22:54 moode systemd[1]: Started Librespot service..
Aug 12 07:22:54 moode librespot[15090]: [2021-08-12T11:22:54Z INFO  librespot] librespot 0.2.0 68bec41 (Built on 2021-08-12, Build ID: EnvQ8KHo)
Aug 12 07:22:54 moode librespot[15090]: [2021-08-12T11:22:54Z DEBUG librespot_playback::mixer::mappings] Volume control is now Log(60.0)
Aug 12 07:22:54 moode librespot[15090]: [2021-08-12T11:22:54Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:45867
Aug 12 07:23:16 moode librespot[15090]: [2021-08-12T11:23:16Z DEBUG librespot_discovery::server] POST "/" {}
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_core::session] Connecting to AP "gew1-accesspoint-a-k28s.ap.spotify.com:4070"
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_core::session] Authenticated as "howlow7" !
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::session] new Session[0]
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_connect::spirc] new Spirc[0]
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::player] new Player[0]
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_playback::audio_backend::rodio] Using audio device: default
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_connect::spirc] canonical_username: howlow7
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::mercury] new MercuryManager
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::session] Session[0] strong=3 weak=2
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO  librespot_core::session] Country: "CY"
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::player] command=AddEventSender
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::player] command=VolumeSet(65535)
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::mercury] unknown subscription uri=hm://remote/user/howlow7/
Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/howlow7/ count=0
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_connect::spirc] kMessageTypeLoad "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974793659 1628767397714 kPlayStatusPause
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_connect::spirc] State: context_uri: "spotify:playlist:2RFlx9OgKwgHkivQGyhMip" index: 2 position_ms: 124544 status: kPlayStatusPause position_measured_at: 1628767398259 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 2 track {gid: "\244\375p\371/\357NL\250\366p\032\250\013\216\006"} track {gid: "\375\035\364\373%\275JS\276\363Z\351}y\3211"} track {gid: "\"\230M\246\207\035N\317\260]\257\257\254?[w"} track {gid: "\334\236j\000\350CMp\272v\334dJ\3772\236"} track {gid: "\221Z\277\357\220\026H\263\204SQ\316F\003\254K"} track {gid: "\\\340\351\016\214\nOh\230\347\347\254\226\363@\277"} track {gid: "\256M\313\241#AJ\350\275i=d\341\377\334\322"} track {gid: "\225\257\306b\345%L\367\245\376\362\035\024b\322="} track {gid: "\314\006\377\2222\357O\010\275m\321\003\322\357\254w"} track {gid: "\276\332\336\037+yIj\261a\347\001\016.yT"} track {gid: "!a\317G\241\330F(\201\322V\364\310\231[@"} track {gid: "\266\344k\235\r`D\252\2510\001E@\274\235\222"} track {gid: "Q&\036\201l;J\314\270\265yL\373\255l\201"} track {gid: "\355\244a\370w_O7\271\333\254\037\260^\014p"} track {gid: "\323\017\333\003G\007O\357\277\271\n\363\327\n(#"} track {gid: "i\326\355\034\254\327E\372\244\027\357\3471t\214P"} track {gid: "\030\205\262N\352\246Jl\212\031\332\032\2563\202J"} track {gid: "F\330\260\210{\031K\260\272~xU\010\311\231\235"} track {gid: "\t\266\037j1\212G?\236\376\242\003g\377\255Q"} track {gid: "\262\272]_0\225M\r\245\027)u\022Vf\363"} track {gid: "\331\006\204\354\365\377L(\235\024\326g:+f\246"} track {gid: "\201\246 \t\323\211L\350\235\257\275\341\276\342\215\323"} track {gid: "Z\230\323\260L\261B\265\204nv\004V\"P\267"} track {gid: "\322\234\027\254\034nO\033\261k\347\312\246\026\353\241"} track {gid: "\026\2442w\231\247O\357\251\323\302H\016\023tR"} track {gid: "_\345\327\375Z\356M\273\254\007\034\207\310]@\313"} track {gid: "t%?\245\302\311A\001\274;\005\007\257\264sA"} track {gid: "bUr\342Q\232K\300\202\246\243A\333\307.#"} track {gid: "\007n\220\213Y?M\354\254\312\275\276\265=\336\273"}
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_connect::spirc] Frame has 29 tracks
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 45984555918414799375189362464887102327, audio_type: Track }, false, 124544)
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z INFO  librespot_playback::player] Loading <Les blondes> with Spotify URI <spotify:track:13hlcnzPPTWy8x45PeSHrN>
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_audio::fetch] Downloading file cdd27b5768fbb65e6eb339151ab39e4a6d16a07b
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_core::channel] new ChannelManager
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_core::audio_key] new AudioKeyManager
Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 183ms
Aug 12 07:23:19 moode librespot[15090]: [2021-08-12T11:23:19Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 85ms
Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87ms
Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z INFO  librespot_playback::player] <Les blondes> (174920 ms) loaded
Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z TRACE librespot_connect::spirc] ==> kPlayStatusPause
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z DEBUG librespot_connect::spirc] kMessageTypePlay "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974797242 1628767400518 kPlayStatusPause
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z DEBUG librespot_playback::player] command=VolumeSet(65535)
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z DEBUG librespot_playback::player] command=Play
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_playback::player] == Starting sink ==
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 07:23:25 moode librespot[15090]: [2021-08-12T11:23:25Z DEBUG librespot_connect::spirc] kMessageTypeSeek "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974800748 1628767401845 kPlayStatusPlay
Aug 12 07:23:25 moode librespot[15090]: [2021-08-12T11:23:25Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:25 moode librespot[15090]: [2021-08-12T11:23:25Z DEBUG librespot_playback::player] command=Seek(76114)
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z DEBUG librespot_connect::spirc] kMessageTypeSeek "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974801717 1628767405295 kPlayStatusPlay
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 85ms
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 153ms
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z DEBUG librespot_playback::player] command=Seek(30216)
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87ms
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974803031 1628767406637 kPlayStatusStop
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z DEBUG librespot_playback::mixer::mappings] Input volume 12684 mapped to: 0.38%
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z DEBUG librespot_playback::player] command=VolumeSet(12684)
Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974803934 1628767407650 kPlayStatusStop
Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z DEBUG librespot_playback::mixer::mappings] Input volume 29596 mapped to: 2.26%
Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z DEBUG librespot_playback::player] command=VolumeSet(29596)
Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974811354 1628767408562 kPlayStatusStop
Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z DEBUG librespot_playback::mixer::mappings] Input volume 50736 mapped to: 21.02%
Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z DEBUG librespot_playback::player] command=VolumeSet(50736)
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974811659 1628767415963 kPlayStatusStop
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_playback::mixer::mappings] Input volume 64125 mapped to: 86.19%
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_playback::player] command=VolumeSet(64125)
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974811903 1628767416282 kPlayStatusStop
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_playback::player] command=VolumeSet(65535)
Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z DEBUG librespot_connect::spirc] kMessageTypePause "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974816407 1628767416500 kPlayStatusPlay
Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z DEBUG librespot_playback::player] command=Pause
Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_playback::player] == Stopping sink ==
Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause]
Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_connect::spirc] ==> kPlayStatusPause
Aug 12 07:23:41 moode librespot[15090]: [2021-08-12T11:23:41Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 91ms
Aug 12 07:23:52 moode librespot[15090]: [2021-08-12T11:23:52Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 88ms
Aug 12 07:23:56 moode librespot[15090]: [2021-08-12T11:23:56Z DEBUG librespot_audio::fetch] File cdd27b5768fbb65e6eb339151ab39e4a6d16a07b complete, saving to cache


<!-- gh-comment-id:897559485 --> @stargazer commented on GitHub (Aug 12, 2021): Hi @roderickvd, I have compiled from `dev` as you suggested. The sound is still distorted, same as before. <details><summary>Here are some logs from this run</summary> ```bash Aug 12 07:22:54 moode systemd[1]: Started Librespot service.. Aug 12 07:22:54 moode librespot[15090]: [2021-08-12T11:22:54Z INFO librespot] librespot 0.2.0 68bec41 (Built on 2021-08-12, Build ID: EnvQ8KHo) Aug 12 07:22:54 moode librespot[15090]: [2021-08-12T11:22:54Z DEBUG librespot_playback::mixer::mappings] Volume control is now Log(60.0) Aug 12 07:22:54 moode librespot[15090]: [2021-08-12T11:22:54Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:45867 Aug 12 07:23:16 moode librespot[15090]: [2021-08-12T11:23:16Z DEBUG librespot_discovery::server] POST "/" {} Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-k28s.ap.spotify.com:4070" Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_core::session] Authenticated as "howlow7" ! Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::session] new Session[0] Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0) Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_connect::spirc] new Spirc[0] Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::player] new Player[0] Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_playback::convert] Converting with ditherer: tpdf Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_playback::audio_backend::rodio] Using audio device: default Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_connect::spirc] canonical_username: howlow7 Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::mercury] new MercuryManager Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::session] Session[0] strong=3 weak=2 Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z INFO librespot_core::session] Country: "CY" Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::player] command=AddEventSender Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_playback::player] command=VolumeSet(65535) Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::mercury] unknown subscription uri=hm://remote/user/howlow7/ Aug 12 07:23:17 moode librespot[15090]: [2021-08-12T11:23:17Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/howlow7/ count=0 Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_connect::spirc] kMessageTypeLoad "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974793659 1628767397714 kPlayStatusPause Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_connect::spirc] State: context_uri: "spotify:playlist:2RFlx9OgKwgHkivQGyhMip" index: 2 position_ms: 124544 status: kPlayStatusPause position_measured_at: 1628767398259 context_description: "" shuffle: false repeat: false playing_from_fallback: true row: 0 playing_track_index: 2 track {gid: "\244\375p\371/\357NL\250\366p\032\250\013\216\006"} track {gid: "\375\035\364\373%\275JS\276\363Z\351}y\3211"} track {gid: "\"\230M\246\207\035N\317\260]\257\257\254?[w"} track {gid: "\334\236j\000\350CMp\272v\334dJ\3772\236"} track {gid: "\221Z\277\357\220\026H\263\204SQ\316F\003\254K"} track {gid: "\\\340\351\016\214\nOh\230\347\347\254\226\363@\277"} track {gid: "\256M\313\241#AJ\350\275i=d\341\377\334\322"} track {gid: "\225\257\306b\345%L\367\245\376\362\035\024b\322="} track {gid: "\314\006\377\2222\357O\010\275m\321\003\322\357\254w"} track {gid: "\276\332\336\037+yIj\261a\347\001\016.yT"} track {gid: "!a\317G\241\330F(\201\322V\364\310\231[@"} track {gid: "\266\344k\235\r`D\252\2510\001E@\274\235\222"} track {gid: "Q&\036\201l;J\314\270\265yL\373\255l\201"} track {gid: "\355\244a\370w_O7\271\333\254\037\260^\014p"} track {gid: "\323\017\333\003G\007O\357\277\271\n\363\327\n(#"} track {gid: "i\326\355\034\254\327E\372\244\027\357\3471t\214P"} track {gid: "\030\205\262N\352\246Jl\212\031\332\032\2563\202J"} track {gid: "F\330\260\210{\031K\260\272~xU\010\311\231\235"} track {gid: "\t\266\037j1\212G?\236\376\242\003g\377\255Q"} track {gid: "\262\272]_0\225M\r\245\027)u\022Vf\363"} track {gid: "\331\006\204\354\365\377L(\235\024\326g:+f\246"} track {gid: "\201\246 \t\323\211L\350\235\257\275\341\276\342\215\323"} track {gid: "Z\230\323\260L\261B\265\204nv\004V\"P\267"} track {gid: "\322\234\027\254\034nO\033\261k\347\312\246\026\353\241"} track {gid: "\026\2442w\231\247O\357\251\323\302H\016\023tR"} track {gid: "_\345\327\375Z\356M\273\254\007\034\207\310]@\313"} track {gid: "t%?\245\302\311A\001\274;\005\007\257\264sA"} track {gid: "bUr\342Q\232K\300\202\246\243A\333\307.#"} track {gid: "\007n\220\213Y?M\354\254\312\275\276\265=\336\273"} Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_connect::spirc] Frame has 29 tracks Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 45984555918414799375189362464887102327, audio_type: Track }, false, 124544) Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z INFO librespot_playback::player] Loading <Les blondes> with Spotify URI <spotify:track:13hlcnzPPTWy8x45PeSHrN> Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_audio::fetch] Downloading file cdd27b5768fbb65e6eb339151ab39e4a6d16a07b Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_core::channel] new ChannelManager Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z DEBUG librespot_core::audio_key] new AudioKeyManager Aug 12 07:23:18 moode librespot[15090]: [2021-08-12T11:23:18Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 183ms Aug 12 07:23:19 moode librespot[15090]: [2021-08-12T11:23:19Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 85ms Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87ms Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z INFO librespot_playback::player] <Les blondes> (174920 ms) loaded Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 07:23:20 moode librespot[15090]: [2021-08-12T11:23:20Z TRACE librespot_connect::spirc] ==> kPlayStatusPause Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z DEBUG librespot_connect::spirc] kMessageTypePlay "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974797242 1628767400518 kPlayStatusPause Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z DEBUG librespot_playback::player] command=VolumeSet(65535) Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z DEBUG librespot_playback::player] command=Play Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_playback::player] == Starting sink == Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 07:23:21 moode librespot[15090]: [2021-08-12T11:23:21Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 07:23:25 moode librespot[15090]: [2021-08-12T11:23:25Z DEBUG librespot_connect::spirc] kMessageTypeSeek "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974800748 1628767401845 kPlayStatusPlay Aug 12 07:23:25 moode librespot[15090]: [2021-08-12T11:23:25Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:25 moode librespot[15090]: [2021-08-12T11:23:25Z DEBUG librespot_playback::player] command=Seek(76114) Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z DEBUG librespot_connect::spirc] kMessageTypeSeek "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974801717 1628767405295 kPlayStatusPlay Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 85ms Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 153ms Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 07:23:26 moode librespot[15090]: [2021-08-12T11:23:26Z DEBUG librespot_playback::player] command=Seek(30216) Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 87ms Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974803031 1628767406637 kPlayStatusStop Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z DEBUG librespot_playback::mixer::mappings] Input volume 12684 mapped to: 0.38% Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:27 moode librespot[15090]: [2021-08-12T11:23:27Z DEBUG librespot_playback::player] command=VolumeSet(12684) Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974803934 1628767407650 kPlayStatusStop Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z DEBUG librespot_playback::mixer::mappings] Input volume 29596 mapped to: 2.26% Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:28 moode librespot[15090]: [2021-08-12T11:23:28Z DEBUG librespot_playback::player] command=VolumeSet(29596) Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974811354 1628767408562 kPlayStatusStop Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z DEBUG librespot_playback::mixer::mappings] Input volume 50736 mapped to: 21.02% Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:35 moode librespot[15090]: [2021-08-12T11:23:35Z DEBUG librespot_playback::player] command=VolumeSet(50736) Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974811659 1628767415963 kPlayStatusStop Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_playback::mixer::mappings] Input volume 64125 mapped to: 86.19% Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_playback::player] command=VolumeSet(64125) Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_connect::spirc] kMessageTypeVolume "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974811903 1628767416282 kPlayStatusStop Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay] Aug 12 07:23:36 moode librespot[15090]: [2021-08-12T11:23:36Z DEBUG librespot_playback::player] command=VolumeSet(65535) Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z DEBUG librespot_connect::spirc] kMessageTypePause "zenbook2" eb6fb28818088d5353749a91b2503b32e32ddc92 974816407 1628767416500 kPlayStatusPlay Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z DEBUG librespot_playback::player] command=Pause Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_playback::player] == Stopping sink == Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] Aug 12 07:23:40 moode librespot[15090]: [2021-08-12T11:23:40Z TRACE librespot_connect::spirc] ==> kPlayStatusPause Aug 12 07:23:41 moode librespot[15090]: [2021-08-12T11:23:41Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 91ms Aug 12 07:23:52 moode librespot[15090]: [2021-08-12T11:23:52Z TRACE librespot_audio::fetch::receive] Ping time estimated as: 88ms Aug 12 07:23:56 moode librespot[15090]: [2021-08-12T11:23:56Z DEBUG librespot_audio::fetch] File cdd27b5768fbb65e6eb339151ab39e4a6d16a07b complete, saving to cache ``` </details>
Author
Owner

@roderickvd commented on GitHub (Aug 12, 2021):

  1. In your top post you said it became distorted "all of the sudden". Something must have changed, what was it?
  2. What happens if you use --backend alsa directly instead of using Rodio?

I cannot reproduce this, I'm starting to think it's something in your OS or sound system configuration.

<!-- gh-comment-id:897561461 --> @roderickvd commented on GitHub (Aug 12, 2021): 1. In your top post you said it became distorted "all of the sudden". Something *must* have changed, what was it? 2. What happens if you use `--backend alsa` directly instead of using Rodio? I cannot reproduce this, I'm starting to think it's something in your OS or sound system configuration.
Author
Owner

@stargazer commented on GitHub (Aug 12, 2021):

  1. In your top post you said it became distorted "all of the sudden". Something must have changed, what was it?

Nothing, not on my end at least. I've had the same librespot build for quite a few months now, and my raspberry pi was running it non-stop for a couple of months. Then one day the sound was distorted and noisy.

  1. What happens if you use --backend alsa directly instead of using Rodio?

I get this beauty :/

log

> target/release/librespot --backend alsa
[2021-08-12T11:38:39Z INFO  librespot] librespot 0.2.0 68bec41 (Built on 2021-08-12, Build ID: EnvQ8KHo)
thread 'main' panicked at 'Invalid backend', src/main.rs:443:53
stack backtrace:
   0:   0x94483c - std::backtrace_rs::backtrace::libunwind::trace::h271512b7e50a40f9
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:   0x94483c - std::backtrace_rs::backtrace::trace_unsynchronized::h0de36f9f48a9789a
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:   0x94483c - std::sys_common::backtrace::_print_fmt::h9c998b5818c3a976
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:67:5
   3:   0x94483c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1e66bfce45c13f11
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:46:22
   4:   0x96c108 - core::fmt::write::hcbd55b5acee631c7
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/fmt/mod.rs:1110:17
   5:   0x93da78 - std::io::Write::write_fmt::h2be04b6e1e4c8262
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/io/mod.rs:1588:15
   6:   0x946f98 - std::sys_common::backtrace::_print::h4000d09a64caf417
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:49:5
   7:   0x946f98 - std::sys_common::backtrace::print::h9397e356af614514
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:36:9
   8:   0x946f98 - std::panicking::default_hook::{{closure}}::h54f6cd7ea48c553e
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:208:50
   9:   0x946980 - std::panicking::default_hook::h4aabf4e2b8a8ec93
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:225:9
  10:   0x947684 - std::panicking::rust_panic_with_hook::ha699e70e3eeda698
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:622:17
  11:   0x94715c - std::panicking::begin_panic_handler::{{closure}}::h5986d26c62ba06f9
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:519:13
  12:   0x944df4 - std::sys_common::backtrace::__rust_end_short_backtrace::h8c9f2f7ff814f051
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:141:18
  13:   0x9470a4 - rust_begin_unwind
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
  14:   0x50ea44 - core::panicking::panic_fmt::h25d1c2df73602ae3
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:92:14
  15:   0x50e94c - core::option::expect_failed::h8c8a4bca7593cae2
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/option.rs:1243:5
  16:   0x54c5d0 - librespot::get_setup::h6475d0186429f6cd
  17:   0x57ab90 - librespot::main::{{closure}}::h6c75f622140c028e
  18:   0x548c20 - tokio::macros::scoped_tls::ScopedKey<T>::set::h49f98692c141a75a
  19:   0x51acb8 - tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::h181f38ca095849e3
  20:   0x5c40dc - tokio::runtime::Runtime::block_on::h2d68d519888fa619
  21:   0x54d228 - librespot::main::h9fe961cad3e4b8f8
  22:   0x556158 - std::sys_common::backtrace::__rust_begin_short_backtrace::haf49c9ab72536d09
  23:   0x5a7ba0 - std::rt::lang_start::{{closure}}::h3a0ff5dd8c1d63c4
  24:   0x947c9c - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h2468e1dca3f947fd
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:259:13
  25:   0x947c9c - std::panicking::try::do_call::h27eb85b760b8eec3
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:401:40
  26:   0x947c9c - std::panicking::try::h96b02e9cdf714ce4
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:365:19
  27:   0x947c9c - std::panic::catch_unwind::ha15ae44e88a980c7
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:434:14
  28:   0x947c9c - std::rt::lang_start_internal::haf3d28c24786d381
                       at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/rt.rs:34:21
  29:   0x54d3a8 - main
  30: 0x76c1d718 - __libc_start_main

I cannot reproduce this, I'm starting to think it's something in your OS or sound system configuration.

The thing is, I also run Moode on the same machine so that I can playback my own music library as well. That one does work beautifully and the sound is as good as ever.

<!-- gh-comment-id:897568403 --> @stargazer commented on GitHub (Aug 12, 2021): > 1. In your top post you said it became distorted "all of the sudden". Something must have changed, what was it? Nothing, not on my end at least. I've had the same `librespot` build for quite a few months now, and my raspberry pi was running it non-stop for a couple of months. Then one day the sound was distorted and noisy. > 2. What happens if you use --backend alsa directly instead of using Rodio? I get this beauty :/ <details><summary>log</summary> ```bash > target/release/librespot --backend alsa [2021-08-12T11:38:39Z INFO librespot] librespot 0.2.0 68bec41 (Built on 2021-08-12, Build ID: EnvQ8KHo) thread 'main' panicked at 'Invalid backend', src/main.rs:443:53 stack backtrace: 0: 0x94483c - std::backtrace_rs::backtrace::libunwind::trace::h271512b7e50a40f9 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 1: 0x94483c - std::backtrace_rs::backtrace::trace_unsynchronized::h0de36f9f48a9789a at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x94483c - std::sys_common::backtrace::_print_fmt::h9c998b5818c3a976 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:67:5 3: 0x94483c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1e66bfce45c13f11 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:46:22 4: 0x96c108 - core::fmt::write::hcbd55b5acee631c7 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/fmt/mod.rs:1110:17 5: 0x93da78 - std::io::Write::write_fmt::h2be04b6e1e4c8262 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/io/mod.rs:1588:15 6: 0x946f98 - std::sys_common::backtrace::_print::h4000d09a64caf417 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:49:5 7: 0x946f98 - std::sys_common::backtrace::print::h9397e356af614514 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:36:9 8: 0x946f98 - std::panicking::default_hook::{{closure}}::h54f6cd7ea48c553e at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:208:50 9: 0x946980 - std::panicking::default_hook::h4aabf4e2b8a8ec93 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:225:9 10: 0x947684 - std::panicking::rust_panic_with_hook::ha699e70e3eeda698 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:622:17 11: 0x94715c - std::panicking::begin_panic_handler::{{closure}}::h5986d26c62ba06f9 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:519:13 12: 0x944df4 - std::sys_common::backtrace::__rust_end_short_backtrace::h8c9f2f7ff814f051 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:141:18 13: 0x9470a4 - rust_begin_unwind at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5 14: 0x50ea44 - core::panicking::panic_fmt::h25d1c2df73602ae3 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:92:14 15: 0x50e94c - core::option::expect_failed::h8c8a4bca7593cae2 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/option.rs:1243:5 16: 0x54c5d0 - librespot::get_setup::h6475d0186429f6cd 17: 0x57ab90 - librespot::main::{{closure}}::h6c75f622140c028e 18: 0x548c20 - tokio::macros::scoped_tls::ScopedKey<T>::set::h49f98692c141a75a 19: 0x51acb8 - tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::h181f38ca095849e3 20: 0x5c40dc - tokio::runtime::Runtime::block_on::h2d68d519888fa619 21: 0x54d228 - librespot::main::h9fe961cad3e4b8f8 22: 0x556158 - std::sys_common::backtrace::__rust_begin_short_backtrace::haf49c9ab72536d09 23: 0x5a7ba0 - std::rt::lang_start::{{closure}}::h3a0ff5dd8c1d63c4 24: 0x947c9c - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h2468e1dca3f947fd at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:259:13 25: 0x947c9c - std::panicking::try::do_call::h27eb85b760b8eec3 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:401:40 26: 0x947c9c - std::panicking::try::h96b02e9cdf714ce4 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:365:19 27: 0x947c9c - std::panic::catch_unwind::ha15ae44e88a980c7 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:434:14 28: 0x947c9c - std::rt::lang_start_internal::haf3d28c24786d381 at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/rt.rs:34:21 29: 0x54d3a8 - main 30: 0x76c1d718 - __libc_start_main ``` </details> > I cannot reproduce this, I'm starting to think it's something in your OS or sound system configuration. The thing is, I also run [Moode](http://moodeaudio.org/) on the same machine so that I can playback my own music library as well. That one does work beautifully and the sound is as good as ever.
Author
Owner

@stargazer commented on GitHub (Aug 12, 2021):

Perhaps related:

> target/release/librespot --backend ?
[2021-08-12T11:44:13Z INFO  librespot] librespot 0.2.0 68bec41 (Built on 2021-08-12, Build ID: EnvQ8KHo)
Available backends : 
- rodio (default)
- pipe
- subprocess

<!-- gh-comment-id:897570274 --> @stargazer commented on GitHub (Aug 12, 2021): Perhaps related: ```bash > target/release/librespot --backend ? [2021-08-12T11:44:13Z INFO librespot] librespot 0.2.0 68bec41 (Built on 2021-08-12, Build ID: EnvQ8KHo) Available backends : - rodio (default) - pipe - subprocess ```
Author
Owner

@roderickvd commented on GitHub (Aug 12, 2021):

Yes, please compile like cargo build --release --features alsa-backend.
Co-incidentally, that's also what moOde does, so this may turn out to be a Rodio thing.

<!-- gh-comment-id:897571778 --> @roderickvd commented on GitHub (Aug 12, 2021): Yes, please compile like `cargo build --release --features alsa-backend`. Co-incidentally, that's also what moOde does, so this may turn out to be a Rodio thing.
Author
Owner

@stargazer commented on GitHub (Aug 12, 2021):

Yes, please compile like cargo build --release --features alsa-backend.
Co-incidentally, that's also what moOde does, so this may turn out to be a Rodio thing.

oh wow @roderickvd, just tried it and this has absolutely fixed the sound. Crystal clear, like it used to be :)

I have absolutely no idea what alsa is, why it wasn't available and how it differs from Rodio, but thanks a bunch for your help :)

<!-- gh-comment-id:897579584 --> @stargazer commented on GitHub (Aug 12, 2021): > Yes, please compile like cargo build --release --features alsa-backend. Co-incidentally, that's also what moOde does, so this may turn out to be a Rodio thing. oh wow @roderickvd, just tried it and this has absolutely fixed the sound. Crystal clear, like it used to be :) I have absolutely no idea what `alsa` is, why it wasn't available and how it differs from Rodio, but thanks a bunch for your help :)
Author
Owner

@roderickvd commented on GitHub (Aug 12, 2021):

Happy to help. This is a thing with Rodio on Alsa, that sometimes happens and sometimes doesn't. Earlier I spent some time debugging in Rodio and CPAL but haven't found a clue as to why. You should report it upstream if you can.

<!-- gh-comment-id:897625783 --> @roderickvd commented on GitHub (Aug 12, 2021): Happy to help. This is a thing with Rodio on Alsa, that sometimes happens and sometimes doesn't. Earlier I spent some time debugging in Rodio and CPAL but haven't found a clue as to why. You should report it [upstream](https://github.com/RustAudio/rodio) if you can.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#421
No description provided.