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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user