From 21d01c484e7f3b7379466348be3f57428023393b Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 21 Jul 2011 15:50:50 +0200 Subject: [PATCH] Adding a flush() to the spotify media socket seems to help on OS X. --- spotifyblob/blob/spotifyclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/spotifyblob/blob/spotifyclient.cpp b/spotifyblob/blob/spotifyclient.cpp index 3326e2fb3..456a52149 100644 --- a/spotifyblob/blob/spotifyclient.cpp +++ b/spotifyblob/blob/spotifyclient.cpp @@ -526,6 +526,7 @@ int SpotifyClient::MusicDeliveryCallback( // Write the audio data. me->media_socket_->write(reinterpret_cast(frames), num_frames * format->channels * 2); + me->media_socket_->flush(); return num_frames; }