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
This commit is contained in:
parent
316dcbd1f6
commit
e2cfdff23e
@ -259,7 +259,7 @@ void SoundStream::Run()
|
|||||||
|
|
||||||
// Leave some time for the other threads if the stream is still playing
|
// Leave some time for the other threads if the stream is still playing
|
||||||
if (SoundSource::GetStatus() != Stopped)
|
if (SoundSource::GetStatus() != Stopped)
|
||||||
Sleep(0.1f);
|
Sleep(0.01f);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop the playback
|
// Stop the playback
|
||||||
|
Loading…
Reference in New Issue
Block a user