aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-07 20:34:34 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-07 20:34:34 +0800
commita4914ceb5c96e65b2923f2dcf414d7a7f7ccd92b (patch)
treec8395cc4ad2bf3f177917d4def67bea14d9d7f97 /qmidiplayer-desktop
parent9b5e38847c238587ab39ce01e2c0d2b94d7e2b0c (diff)
downloadQMidiPlayer-a4914ceb5c96e65b2923f2dcf414d7a7f7ccd92b.tar.xz
new_fluid_audio_driver2 doesn't work for any audio drivers available on Windows.
whoops. another opportunity to inject my crappy code into fluidsynth though.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index 1c825ee..1198559 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -379,7 +379,7 @@ void qmpMainWindow::switchTrack(QString s, bool interrupt)
{
player->playerThread();
if (settings->getOptionBool("Midi/WaitVoice") && player->isFinished())
- while (internalfluid->getOutputLevel() > -100)
+ while (internalfluid->getOutputLevel() > -100 && internalfluid->getPolyphone() > 0)
std::this_thread::sleep_for(std::chrono::milliseconds(10));
});
#ifdef _WIN32
@@ -534,7 +534,7 @@ void qmpMainWindow::on_pbPlayPause_clicked()
{
player->playerThread();
if (settings->getOptionBool("Midi/WaitVoice") && player->isFinished())
- while (internalfluid->getOutputLevel() > -100)
+ while (internalfluid->getOutputLevel() > -100 && internalfluid->getPolyphone() > 0)
std::this_thread::sleep_for(std::chrono::milliseconds(10));
});
#ifdef _WIN32