From 27e837a8bb34195b0ff67f7ae284611a3a780f2c Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 28 Aug 2011 01:30:32 +0100 Subject: [PATCH] Fix spotify audio stuttering on Linux --- cmake/SpotifyVersion.cmake | 2 +- spotifyblob/blob/spotifyclient.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/SpotifyVersion.cmake b/cmake/SpotifyVersion.cmake index 7fc3e4129..a5830f830 100644 --- a/cmake/SpotifyVersion.cmake +++ b/cmake/SpotifyVersion.cmake @@ -1,2 +1,2 @@ # Increment this whenever the user needs to download a new blob -set(SPOTIFY_BLOB_VERSION 3) +set(SPOTIFY_BLOB_VERSION 4) diff --git a/spotifyblob/blob/spotifyclient.cpp b/spotifyblob/blob/spotifyclient.cpp index 9405e0edc..661827e28 100644 --- a/spotifyblob/blob/spotifyclient.cpp +++ b/spotifyblob/blob/spotifyclient.cpp @@ -546,7 +546,10 @@ int SpotifyClient::MusicDeliveryCallback( // Write the audio data. me->media_socket_->write(reinterpret_cast(frames), num_frames * format->channels * 2); +#ifdef Q_OS_DARWIN + // ??? me->media_socket_->flush(); +#endif return num_frames; }