alSourceStop was commented out for some reason in AudioStream::stop,
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Tue, 23 Jan 2018 11:41:46 +0000 (13:41 +0200)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Tue, 23 Jan 2018 11:41:46 +0000 (13:41 +0200)
which would make the thread function loop endlessly waiting for the
source to stop playing ...

src/audio/stream.cc

index 39a147c..10ea3d1 100644 (file)
@@ -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);