mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
Make sure display refreshes after audio I/O stops
What looked simple in r13811 was not so simple apparently. (We REALLY need a gAudioIO->IsCapturing())
This commit is contained in:
parent
204aa37716
commit
f5f3c5135f
@ -1998,7 +1998,9 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
|||||||
wxCommandEvent dummyEvent;
|
wxCommandEvent dummyEvent;
|
||||||
GetControlToolBar()->OnStop(dummyEvent);
|
GetControlToolBar()->OnStop(dummyEvent);
|
||||||
|
|
||||||
|
FixScrollbars();
|
||||||
SetAudioIOToken(0);
|
SetAudioIOToken(0);
|
||||||
|
RedrawProject();
|
||||||
}
|
}
|
||||||
else if (gAudioIO->IsMonitoring()) {
|
else if (gAudioIO->IsMonitoring()) {
|
||||||
gAudioIO->StopStream();
|
gAudioIO->StopStream();
|
||||||
@ -4737,11 +4739,11 @@ void AudacityProject::OnAudioIOStopRecording()
|
|||||||
OnUndo();
|
OnUndo();
|
||||||
ResetTimerRecordFlag();
|
ResetTimerRecordFlag();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh the project window
|
// Refresh the project window
|
||||||
FixScrollbars();
|
FixScrollbars();
|
||||||
RedrawProject();
|
RedrawProject();
|
||||||
|
}
|
||||||
|
|
||||||
// Write all cached files to disk, if any
|
// Write all cached files to disk, if any
|
||||||
mDirManager->WriteCacheToDisk();
|
mDirManager->WriteCacheToDisk();
|
||||||
|
@ -1053,7 +1053,10 @@ void TrackPanel::OnTimer()
|
|||||||
if (p->GetAudioIOToken()>0 &&
|
if (p->GetAudioIOToken()>0 &&
|
||||||
!gAudioIO->IsAudioTokenActive(p->GetAudioIOToken()))
|
!gAudioIO->IsAudioTokenActive(p->GetAudioIOToken()))
|
||||||
{
|
{
|
||||||
|
p->FixScrollbars();
|
||||||
p->SetAudioIOToken(0);
|
p->SetAudioIOToken(0);
|
||||||
|
p->RedrawProject();
|
||||||
|
|
||||||
mRedrawAfterStop = false;
|
mRedrawAfterStop = false;
|
||||||
|
|
||||||
//ANSWER-ME: Was DisplaySelection added to solve a repaint problem?
|
//ANSWER-ME: Was DisplaySelection added to solve a repaint problem?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user