From: Matthias Braun Date: Tue, 4 Apr 2006 00:10:53 +0000 (+0000) Subject: fix OpenAl deleting buffers before stop() X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4655b6627c817d31f2483281c60297a65a4232b2;p=supertux.git fix OpenAl deleting buffers before stop() SVN-Revision: 3240 --- diff --git a/src/audio/stream_sound_source.cpp b/src/audio/stream_sound_source.cpp index 6918a165b..6e6ce06d1 100644 --- a/src/audio/stream_sound_source.cpp +++ b/src/audio/stream_sound_source.cpp @@ -18,6 +18,7 @@ StreamSoundSource::StreamSoundSource() StreamSoundSource::~StreamSoundSource() { delete file; + stop(); alDeleteBuffers(STREAMFRAGMENTS, buffers); SoundManager::check_al_error("Couldn't delete audio buffers: "); }