Skip to content

Commit

Permalink
make it stop
Browse files Browse the repository at this point in the history
  • Loading branch information
kusma committed Apr 1, 2018
1 parent d9a3f96 commit a451a89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,11 @@ int main(int argc, char *argv[])
swapChain.queuePresent(currentSwapImage, &presentCompleteSemaphore, 1);

glfwPollEvents();

#ifdef SYNC_PLAYER
if (BASS_ChannelIsActive(stream) == BASS_ACTIVE_STOPPED)
break;
#endif
}

#ifndef SYNC_PLAYER
Expand Down

1 comment on commit a451a89

@asbjornu
Copy link

@asbjornu asbjornu commented on a451a89 Apr 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bentstamnes made the music. BASS_ChannelIsActive(stream) == BASS_ACTIVE_STOPPED will always evaluate to false.

Please sign in to comment.