Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Buffer underruns with PortAudioSink #132

Closed
funkzy opened this issue May 9, 2014 · 5 comments
Closed

Buffer underruns with PortAudioSink #132

funkzy opened this issue May 9, 2014 · 5 comments
Labels

Comments

@funkzy
Copy link

funkzy commented May 9, 2014

I modified examples/play_track.py to use PortAudio:

# Connect an audio sink
audio = spotify.PortAudioSink(session)

Every 10-20 seconds or so, I hear a blip in playback.

Details:

  • OS X 10.9.2
  • Macbook Pro / 2.6 ghz processor
  • portaudio: stable 19.20111121, HEAD (via Homebrew)
  • PyAudio: 0.2.8 (released April 2014)
  • Python: 2.7.5
@jodal jodal added 2.x labels May 9, 2014
@jodal jodal self-assigned this May 9, 2014
@jodal jodal added this to the v2.0.0b4 milestone May 9, 2014
@jodal
Copy link
Owner

jodal commented Jun 26, 2014

I can reproduce with:

  • MacBook Air 11" mid-2011
  • OS X 10.9.3
  • Xcode 5.1.1
  • Python 2.7.5 (from Apple) and Python 2.7.7 (from Homebrew)
  • PortAudio 19.20111121, HEAD (from Homebrew)
  • PyAudio 0.2.8 (from pip)

@jodal
Copy link
Owner

jodal commented Jun 26, 2014

If someone feels up to looking at this, the problem is probably in this area:

https://github.com/mopidy/pyspotify/blob/v2.x/develop/spotify/sink.py#L149-L158

@jodal jodal modified the milestones: v2.0.0, v2.0.0b4 Jun 26, 2014
@jodal
Copy link
Owner

jodal commented Jun 26, 2014

I can also reproduce with:

  • Ubuntu 14.04 amd64
  • Python 2.7.6
  • PortAudio 19+svn20140130-1 from APT
  • PyAudio 0.2.7-2build2 from APT

During playback, a couple of these messages was printed:

ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred

I think it's clear we can blame the PortAudioSink implementation in pyspotify.

@jodal jodal changed the title Underruns with pyspotify 2.x PortAudioSink on OS X Buffer underruns with PortAudioSink Jun 26, 2014
@jodal jodal modified the milestones: v2.0.0b4, v2.0.0 Jun 27, 2014
@funkzy
Copy link
Author

funkzy commented Jun 28, 2014

I'm working on a fix for this.

@jodal
Copy link
Owner

jodal commented Jun 14, 2022

Closing as libspotify and pyspotify are dead. See #215 for details.

@jodal jodal closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants