Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choppy audio #145

Open
retalieight opened this issue May 13, 2018 · 1 comment
Open

Choppy audio #145

retalieight opened this issue May 13, 2018 · 1 comment

Comments

@retalieight
Copy link

Does anyone else have issues with audio being choppy and cutting out during streaming? The load on my Pi 3 isn't high and playing music locally is fine so it seems like it's just connecting to a bad Spotify CDN or something. Is there a way to setup a cache like with some of the other Spotify connect projects? This is the best one I've found so I'd like to keep using it.

@retalieight
Copy link
Author

retalieight commented May 13, 2018

If this helps here is some of the debug output:

May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Track transition beginning on track index -1
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: callback context (nil), event 1000, source: (nil), param 0x75c21a6c
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: callback context (nil), event 7, source: (nil), param (nil)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: Notifying kSpPlaybackNotifyTrackChanged
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: kSpPlaybackNotifyTrackChanged
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: Notifying kSpPlaybackNotifyPlay
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: kSpPlaybackNotifyPlay
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: AlsaSink: device acquired
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 0k => 128k +128k (used: 0k, buf: 128k, thres: 48k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: callback context (nil), event 1001, source: (nil), param 0x75b44670
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: Notifying kSpPlaybackEventAudioFlush
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: kSpPlaybackEventAudioFlush
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: WARNING: Underrun in download buffer!
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: WARNING: Underrun in download buffer!
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: WARNING: Underrun in download buffer!
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: WARNING: Underrun in download buffer!
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: WARNING: Underrun in download buffer!
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: WARNING: Underrun in download buffer!
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 128k => 244k +116k (used: 44k, buf: 160k, thres: 64k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 244k => 364k +120k (used: 72k, buf: 192k, thres: 80k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 364k => 492k +128k (used: 96k, buf: 224k, thres: 96k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 492k => 620k +128k (used: 112k, buf: 256k, thres: 112k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 620k => 748k +128k (used: 128k, buf: 288k, thres: 128k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 748k => 880k +132k (used: 140k, buf: 320k, thres: 144k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 880k => 1012k +132k (used: 156k, buf: 352k, thres: 160k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 1012k => 1152k +140k (used: 164k, buf: 384k, thres: 176k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 1152k => 1291k +139k (used: 180k, buf: 416k, thres: 192k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 1291k => 1419k +128k (used: 208k, buf: 448k, thres: 208k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Requesting Bytes: 1419k => 1555k +136k (used: 216k, buf: 480k, thres: 224k, rate: 320k)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: Got Spirc Type 20
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: SpircLoad spotify:artist:02kJSzxNuaWGqwubyUba0Z 36
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: callback context (nil), event 22, source: 0x75b455e8, param 0x1
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: GetMetadata(80)
May 13 15:17:53 broke-mans-sonos spotify-connect-web[4104]: ESDK: callback context (nil), event 20, source: 0x75b455e8, param (nil)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant