From e2cfdff23efef4bde9fa7845cd6576dc881d9156 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Sun, 5 Sep 2010 09:14:11 +0000 Subject: [PATCH] Reduced the sleep duration in sf::SoundStream to avoid stuttering with streams that send a little amount of samples in OnGetData git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1563 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Audio/SoundStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Audio/SoundStream.cpp b/src/SFML/Audio/SoundStream.cpp index ee47ca436..d873f687f 100644 --- a/src/SFML/Audio/SoundStream.cpp +++ b/src/SFML/Audio/SoundStream.cpp @@ -259,7 +259,7 @@ void SoundStream::Run() // Leave some time for the other threads if the stream is still playing if (SoundSource::GetStatus() != Stopped) - Sleep(0.1f); + Sleep(0.01f); } // Stop the playback