From 095716fa21071a506605304db6a113f231ff0dcd Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 9 Nov 2023 20:17:16 -0500 Subject: Fix lingering notes with newer fluidsynth versions. --- qmidiplayer-desktop/qmpmainwindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp') 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(); -- cgit v1.2.3