Fix spotify audio stuttering on Linux
This commit is contained in:
parent
c4280c2cf4
commit
27e837a8bb
@ -1,2 +1,2 @@
|
|||||||
# Increment this whenever the user needs to download a new blob
|
# Increment this whenever the user needs to download a new blob
|
||||||
set(SPOTIFY_BLOB_VERSION 3)
|
set(SPOTIFY_BLOB_VERSION 4)
|
||||||
|
@ -546,7 +546,10 @@ int SpotifyClient::MusicDeliveryCallback(
|
|||||||
// Write the audio data.
|
// Write the audio data.
|
||||||
me->media_socket_->write(reinterpret_cast<const char*>(frames),
|
me->media_socket_->write(reinterpret_cast<const char*>(frames),
|
||||||
num_frames * format->channels * 2);
|
num_frames * format->channels * 2);
|
||||||
|
#ifdef Q_OS_DARWIN
|
||||||
|
// ???
|
||||||
me->media_socket_->flush();
|
me->media_socket_->flush();
|
||||||
|
#endif
|
||||||
|
|
||||||
return num_frames;
|
return num_frames;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user