MCPcopy Create free account
hub / github.com/audacity/audacity / CanStopAudioStream

Method CanStopAudioStream

src/ProjectAudioManager.cpp:1186–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1184}
1185
1186bool ProjectAudioManager::CanStopAudioStream() const
1187{
1188 auto gAudioIO = AudioIO::Get();
1189 return (!gAudioIO->IsStreamActive() ||
1190 gAudioIO->IsMonitoring() ||
1191 gAudioIO->GetOwningProject().get() == &mProject );
1192}
1193
1194const ReservedCommandFlag&
1195 CanStopAudioStreamFlag(){ static ReservedCommandFlag flag{

Callers 8

PlayPlayRegionMethod · 0.80
PlayCurrentRegionMethod · 0.80
StopMethod · 0.80
OnPauseMethod · 0.80
EnableDisableButtonsMethod · 0.80
OnPlayMethod · 0.80
OnStopMethod · 0.80

Calls 4

GetFunction · 0.85
IsStreamActiveMethod · 0.80
IsMonitoringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected