Fixed OpenAL error when stopping sound streams

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1036 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-03-02 17:15:55 +00:00
parent 66681bc1ae
commit e28a89f902
2 changed files with 4 additions and 3 deletions

View file

@ -272,6 +272,7 @@ void SoundStream::Run()
ClearQueue();
// Delete the buffers
ALCheck(alSourcei(Sound::mySource, AL_BUFFER, 0));
ALCheck(alDeleteBuffers(BuffersCount, myBuffers));
}