From 45c91a58dcafea09de355d43211d4b71173f901b Mon Sep 17 00:00:00 2001 From: KinoMyu Date: Sat, 31 Mar 2018 19:49:03 -0700 Subject: [PATCH] Minor bugfix --- src/mainwindow.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3b53693..ae7bccf 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -294,9 +294,12 @@ void MainWindow::play() { BASS_ChannelPause(mix_stream); BASS_ChannelSetPosition(bgm->get_decode_channel(), 0, BASS_POS_BYTE); - for(int i = 0; i < NUM_IDOLS; ++i) + if(!isusotsuki) { - BASS_ChannelSetPosition(idols[i]->get_decode_channel(), 0, BASS_POS_BYTE); + for(int i = 0; i < NUM_IDOLS; ++i) + { + BASS_ChannelSetPosition(idols[i]->get_decode_channel(), 0, BASS_POS_BYTE); + } } } // Clear buffer if player was paused @@ -321,9 +324,12 @@ void MainWindow::reset() BASS_ChannelPause(mix_stream); } // Set positions and flush buffer - for(int i = 0; i < NUM_IDOLS; ++i) + if(!isusotsuki) { - BASS_Mixer_ChannelSetPosition(idols[i]->get_decode_channel(), 0, BASS_POS_BYTE); + for(int i = 0; i < NUM_IDOLS; ++i) + { + BASS_Mixer_ChannelSetPosition(idols[i]->get_decode_channel(), 0, BASS_POS_BYTE); + } } BASS_Mixer_ChannelSetPosition(bgm->get_decode_channel(), 0, BASS_POS_BYTE | BASS_POS_MIXER_RESET); }