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:
@@ -427,6 +427,7 @@ void MidiPlayerWindow::LoadFile(entry_ref* ref)
|
|||||||
{
|
{
|
||||||
scopeView->SetPlaying(false);
|
scopeView->SetPlaying(false);
|
||||||
scopeView->Invalidate();
|
scopeView->Invalidate();
|
||||||
|
UpdateIfNeeded();
|
||||||
|
|
||||||
StopSynth();
|
StopSynth();
|
||||||
}
|
}
|
||||||
@@ -513,7 +514,10 @@ void MidiPlayerWindow::OnPlayStop()
|
|||||||
if (playing)
|
if (playing)
|
||||||
{
|
{
|
||||||
playButton->SetEnabled(false);
|
playButton->SetEnabled(false);
|
||||||
|
scopeView->SetPlaying(false);
|
||||||
|
scopeView->Invalidate();
|
||||||
|
UpdateIfNeeded();
|
||||||
|
|
||||||
StopSynth();
|
StopSynth();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -549,13 +553,9 @@ void MidiPlayerWindow::OnInputChanged(BMessage* msg)
|
|||||||
// be_synth->LoadInstruments(all)
|
// be_synth->LoadInstruments(all)
|
||||||
|
|
||||||
// if id != -1
|
// if id != -1
|
||||||
// if playing -> Stop()
|
|
||||||
// connect SynthBridge (from MidiUtil) to producer endpoint
|
// connect SynthBridge (from MidiUtil) to producer endpoint
|
||||||
// else if SynthBridge still connected
|
// else if SynthBridge still connected
|
||||||
// disconnect SynthBridge
|
// disconnect SynthBridge
|
||||||
|
|
||||||
// NOTE: we should also disconnect SynthBridge when launching
|
|
||||||
// a MIDI file!!! (successfull or not)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user