Skip to content

Commit

Permalink
put bloops_play back the way it was to prevent double-adding
Browse files Browse the repository at this point in the history
  • Loading branch information
MenTaLguY authored and localhost committed Jun 5, 2011
1 parent f8ccd31 commit e3777db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ clean:
@rm -f ${OBJ}
@rm -f c/notation.c c/*.o
@rm -f bloopsawhat libbloopsaphone.a bloopsaphone.so
@cd ext/ruby && make distclean || true

ruby: c/notation.c c/bloopsaphone.c
@${ECHO} RUBY extconf.rb
Expand Down
5 changes: 2 additions & 3 deletions c/bloopsaphone.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,9 @@ bloops_play(bloops *B)
A->nextnote[1] = 0;
}

bloops_remove(B);
for (i = 0; i < BLOOPS_MAX_CHANNELS; i++) {
if (MIXER->B[i] == B) {
break;
} else if (MIXER->B[i] == NULL || MIXER->B[i]->play == BLOOPS_STOP) {
if (MIXER->B[i] == NULL || MIXER->B[i]->play == BLOOPS_STOP) {
bloops_ref(B);
if (MIXER->B[i] != NULL) {
bloops_destroy(MIXER->B[i]);
Expand Down

0 comments on commit e3777db

Please sign in to comment.