From 6ce458939e29ccd282d8159eb636846e9323fbb1 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Thu, 2 Dec 2010 22:26:35 +0000 Subject: [PATCH] Minor fix that makes sf::SoundStream less crazy when the internal AL source couldn't be created git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1732 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 0a2503ef..7db02a4c 100644 --- a/src/SFML/Audio/SoundStream.cpp +++ b/src/SFML/Audio/SoundStream.cpp @@ -221,7 +221,7 @@ void SoundStream::Stream() } // Get the number of buffers that have been processed (ie. ready for reuse) - ALint nbProcessed; + ALint nbProcessed = 0; ALCheck(alGetSourcei(mySource, AL_BUFFERS_PROCESSED, &nbProcessed)); while (nbProcessed--)