projects
/
laserbrain_demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
264eac3
)
alSourceStop was commented out for some reason in AudioStream::stop,
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Tue, 23 Jan 2018 11:41:46 +0000
(13:41 +0200)
committer
John 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
patch
|
blob
|
history
diff --git
a/src/audio/stream.cc
b/src/audio/stream.cc
index
39a147c
..
10ea3d1
100644
(file)
--- 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);