fix OpenAl deleting buffers before stop()
authorMatthias Braun <matze@braunis.de>
Tue, 4 Apr 2006 00:10:53 +0000 (00:10 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 4 Apr 2006 00:10:53 +0000 (00:10 +0000)
SVN-Revision: 3240

src/audio/stream_sound_source.cpp

index 6918a16..6e6ce06 100644 (file)
@@ -18,6 +18,7 @@ StreamSoundSource::StreamSoundSource()
 StreamSoundSource::~StreamSoundSource()
 {
   delete file;
+  stop();
   alDeleteBuffers(STREAMFRAGMENTS, buffers);
   SoundManager::check_al_error("Couldn't delete audio buffers: ");
 }