hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start of songs is inaudible

ThomasFrans opened this issue · comments

Describe the bug
When playing some individual songs, the first few milliseconds are sometimes inaudible. This only happens when starting a single song, not between songs in an album for example. It looks like a preloading/caching problem at first glance. It's not noticeable in most cases (quiet start, padding at start of song, long frequency at start...). It's most obvious in songs that start with a certain amount of drum beats for example, where one of the beats will be lost if it happens at the very start of the song.

To Reproduce
Steps to reproduce the behavior:

  1. Open a fresh ncspot
  2. Start playing one song
  3. Listen carefully to the start of the song. It's not very noticeable but the first few milliseconds are missing.

This is the song that I noticed it in. Only the very first note is missing, and only after a fresh start of ncspot. It works fine when playing it for a second time. (Yes yes, my music taste sucks, I know 😝)
https://open.spotify.com/track/6CRX3ENpLq42r0iBSjOqr1

Expected behavior
The song should be audible from the very start.

System (please complete the following information):

  • OS: Arch Linux (latest updates)
  • Terminal: Alacritty
  • Version: 1.0.0
  • Installed from: cargo

Additional context
I'll have a look at this. Just wanted to put it here in case someone else wanted to look into it as I don't have the time currently.

The culprit wasn't ncspot but a terrible amp. I only noticed it in ncspot as it's the only software I use to listen to music, which is what I noticed it in. Sorry, should have done further testing. Closing this.

For anyone else who is unfortunate enough to use audio software with power saving "features" (like me) 🤮, I found that disabling those might resolve this issue. It did for me. I had problems with snd_hda_intel back in the day where it would generate lots of noise after a few seconds because the sound card was put into power saving (aka what is grounding and why do we need it anyway) mode.

The issue I had here was caused by WirePlumber putting my DAC in power saving mode (long live power saving). You can disable it like this (Ctrl+f 'Noticeable audio delay or audible pop/crack when starting playback').