From 8cf2eca46173e9454cd1118d14300e2f329cf28f Mon Sep 17 00:00:00 2001 From: mahlzeit Date: Fri, 25 Jun 2004 13:55:38 +0000 Subject: [PATCH] Now we stop the scope _before_ fading out. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8167 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/midiplayer/MidiPlayerWindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/apps/midiplayer/MidiPlayerWindow.cpp b/src/apps/midiplayer/MidiPlayerWindow.cpp index 0f12a0b660..39afe18857 100644 --- a/src/apps/midiplayer/MidiPlayerWindow.cpp +++ b/src/apps/midiplayer/MidiPlayerWindow.cpp @@ -427,6 +427,7 @@ void MidiPlayerWindow::LoadFile(entry_ref* ref) { scopeView->SetPlaying(false); scopeView->Invalidate(); + UpdateIfNeeded(); StopSynth(); } @@ -513,7 +514,10 @@ void MidiPlayerWindow::OnPlayStop() if (playing) { playButton->SetEnabled(false); - + scopeView->SetPlaying(false); + scopeView->Invalidate(); + UpdateIfNeeded(); + StopSynth(); } else @@ -549,13 +553,9 @@ void MidiPlayerWindow::OnInputChanged(BMessage* msg) // be_synth->LoadInstruments(all) // if id != -1 - // if playing -> Stop() // connect SynthBridge (from MidiUtil) to producer endpoint // else if SynthBridge still connected - // disconnect SynthBridge - - // NOTE: we should also disconnect SynthBridge when launching - // a MIDI file!!! (successfull or not) + // disconnect SynthBridge } }