1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-04 05:17:47 +02:00

Do not use ControlToolBar's Record button as a state variable

This commit is contained in:
Paul Licameli
2019-07-01 10:26:22 -04:00
parent 923128731d
commit cac04e9fb8
4 changed files with 35 additions and 35 deletions

View File

@@ -192,6 +192,15 @@ void ProjectAudioManager::OnSoundActivationThreshold()
}
}
bool ProjectAudioManager::Recording() const
{
auto gAudioIO = AudioIO::Get();
return
gAudioIO->IsBusy() &&
ControlToolBar::Get( mProject).CanStopAudioStream() &&
gAudioIO->GetNumCaptureChannels() > 0;
}
AudioIOStartStreamOptions
DefaultPlayOptions( AudacityProject &project )
{