Skip to content
Snippets Groups Projects
Commit c1ca9c70 authored by SeeLook's avatar SeeLook
Browse files

Fixed disabling sound bar when midi output

parent 017a3657
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@
====== BUGS AND ISSUES ===============================================
MAJOR:
- midi output disables volume viewer
- crash on terminate in Oxygen due to animation on status label
- restore defaults for newer options!s
......
......@@ -65,10 +65,9 @@ void Tsound::play(Tnote& note) {
if (player && note.note)
playing = player->play(note.chromatic());
if (playing && !Tcore::gl()->A->playDetected && player->type() == TabstractPlayer::e_midi) {
if (sniffer) { // pause sniffer if midi output was started
if (sniffer) { // stop sniffer if midi output was started
if (!m_midiPlays) { // stop listening just once
sniffer->stopListening();
m_pitchView->stopWatching();
m_midiPlays = true;
}
}
......@@ -339,14 +338,12 @@ void Tsound::restoreSniffer() {
void Tsound::playingFinishedSlot() {
// qDebug("playingFinished");
if (!m_examMode && sniffer) {
if (!m_pitchView->isPaused()) {
sniffer->startListening();
// m_pitchView->watchInput();
m_midiPlays = false;
if (m_midiPlays) {
sniffer->startListening();
}
m_midiPlays = false;
}
emit plaingFinished();
// go();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment