diff options
author | Chris Xiong <chirs241097@gmail.com> | 2023-11-09 20:17:16 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2023-11-09 20:17:16 -0500 |
commit | 095716fa21071a506605304db6a113f231ff0dcd (patch) | |
tree | d09a10998926ac4f51958e9f3847a2ef39de320c /qmidiplayer-desktop | |
parent | 07ee50be7c390668f8c600b8eb5805f56cf6a8a1 (diff) | |
download | QMidiPlayer-095716fa21071a506605304db6a113f231ff0dcd.tar.xz |
Fix lingering notes with newer fluidsynth versions.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index a139c20..a0a4539 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -284,7 +284,8 @@ void qmpMainWindow::updateWidgets() } delete playerTh; playerTh = nullptr; - player->playerPanic(true); + player->playerPanic(); + player->playerReset(); chnlw->on_pbUnmute_clicked(); chnlw->on_pbUnsolo_clicked(); ui->pbPlayPause->setIcon(QIcon(getThemedIcon(":/img/play.svg"))); @@ -355,7 +356,8 @@ void qmpMainWindow::switchTrack(QString s, bool interrupt) playerTh = nullptr; } timer->stop(); - player->playerPanic(true); + player->playerPanic(); + player->playerReset(); ui->hsTimer->setValue(0); chnlw->on_pbUnmute_clicked(); chnlw->on_pbUnsolo_clicked(); @@ -669,7 +671,8 @@ void qmpMainWindow::on_pbStop_clicked() player->playerDeinit(); setFuncEnabled("Render", stopped); setFuncEnabled("ReloadSynth", stopped); - player->playerPanic(true); + player->playerPanic(); + player->playerReset(); if (playerTh) { playerTh->join(); |