Now we stop the scope _before_ fading out.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8167 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit
2004-06-25 13:55:38 +00:00
parent 1fac18e1bb
commit 8cf2eca461
+6 -6
View File
@@ -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
}
}