mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-06 14:27:36 +02:00
Use events to break dependency cycle introduced at 3978e8c
This commit is contained in:
@@ -65,6 +65,8 @@ ProjectAudioManager::ProjectAudioManager( AudacityProject &project )
|
||||
{
|
||||
static ProjectStatus::RegisteredStatusWidthFunction
|
||||
registerStatusWidthFunction{ StatusWidthFunction };
|
||||
project.Bind( EVT_CHECKPOINT_FAILURE,
|
||||
&ProjectAudioManager::OnCheckpointFailure, this );
|
||||
}
|
||||
|
||||
ProjectAudioManager::~ProjectAudioManager() = default;
|
||||
@@ -953,6 +955,12 @@ void ProjectAudioManager::OnSoundActivationThreshold()
|
||||
}
|
||||
}
|
||||
|
||||
void ProjectAudioManager::OnCheckpointFailure(wxCommandEvent &evt)
|
||||
{
|
||||
evt.Skip();
|
||||
Stop();
|
||||
}
|
||||
|
||||
bool ProjectAudioManager::Playing() const
|
||||
{
|
||||
auto gAudioIO = AudioIO::Get();
|
||||
|
||||
Reference in New Issue
Block a user