Skip to content

Commit a451a89

Browse files
committed
make it stop
1 parent d9a3f96 commit a451a89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,11 @@ int main(int argc, char *argv[])
13391339
swapChain.queuePresent(currentSwapImage, &presentCompleteSemaphore, 1);
13401340

13411341
glfwPollEvents();
1342+
1343+
#ifdef SYNC_PLAYER
1344+
if (BASS_ChannelIsActive(stream) == BASS_ACTIVE_STOPPED)
1345+
break;
1346+
#endif
13421347
}
13431348

13441349
#ifndef SYNC_PLAYER

0 commit comments

Comments
 (0)