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

Method StartMonitoring

src/widgets/MeterPanel.cpp:1801–1819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1799}
1800
1801void MeterPanel::StartMonitoring()
1802{
1803 bool start = !mMonitoring;
1804
1805 auto gAudioIO = AudioIO::Get();
1806 if (gAudioIO->IsMonitoring()){
1807 gAudioIO->StopStream();
1808 }
1809
1810 if (start && !gAudioIO->IsBusy()){
1811 AudacityProject *p = mProject;
1812 if (p)
1813 gAudioIO->StartMonitoring(ProjectAudioIO::GetDefaultOptions(*p));
1814
1815 mLayoutValid = false;
1816
1817 Refresh(false);
1818 }
1819}
1820
1821void MeterPanel::StopMonitoring(){
1822 mMonitoring = false;

Callers 1

DoDefaultActionMethod · 0.45

Calls 4

GetFunction · 0.85
StopStreamMethod · 0.80
IsBusyMethod · 0.80
IsMonitoringMethod · 0.45

Tested by

no test coverage detected