From: John Tsiombikas Date: Tue, 23 Jan 2018 11:41:46 +0000 (+0200) Subject: alSourceStop was commented out for some reason in AudioStream::stop, X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=d850ecb33250f963593a0988fc91c2d21b17a725 alSourceStop was commented out for some reason in AudioStream::stop, which would make the thread function loop endlessly waiting for the source to stop playing ... --- diff --git a/src/audio/stream.cc b/src/audio/stream.cc index 39a147c..10ea3d1 100644 --- a/src/audio/stream.cc +++ b/src/audio/stream.cc @@ -99,7 +99,7 @@ void AudioStream::stop() if(alsrc) { done = true; - //alSourceStop(alsrc); + alSourceStop(alsrc); printf("waiting for the music thread to stop\n"); pthread_mutex_unlock(&mutex); pthread_join(play_thread, 0);