From f2c28cb403681e49c9d10cb038c952a5963e6cde Mon Sep 17 00:00:00 2001 From: Johannes Knutsen Date: Thu, 1 Jul 2010 01:27:04 +0200 Subject: [PATCH] use blocking alsa mode to avoid skipping in playback --- mopidy/backends/libspotify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mopidy/backends/libspotify.py b/mopidy/backends/libspotify.py index b4b809b3..ada857ad 100644 --- a/mopidy/backends/libspotify.py +++ b/mopidy/backends/libspotify.py @@ -15,6 +15,8 @@ from mopidy.backends import (BaseBackend, BaseCurrentPlaylistController, from mopidy.models import Artist, Album, Track, Playlist from mopidy.utils import spotify_uri_to_int +import alsaaudio + logger = logging.getLogger('mopidy.backends.libspotify') ENCODING = 'utf-8' @@ -180,7 +182,7 @@ class LibspotifySessionManager(SpotifySessionManager, threading.Thread): threading.Thread.__init__(self) self.core_queue = core_queue self.connected = threading.Event() - self.audio = audio_controller_class() + self.audio = audio_controller_class(alsaaudio.PCM_NORMAL) self.session = None def run(self):