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

Method OnAudioCapture

src/widgets/MeterPanel.cpp:1853–1864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1851}
1852
1853void MeterPanel::OnAudioCapture(AudioIOEvent event)
1854{
1855 if (
1856 event.type == AudioIOEvent::CAPTURE &&
1857 (event.pProject != mProject || !event.on))
1858 {
1859 mEnabled = !event.on;
1860
1861 if (mSlider)
1862 mSlider->SetEnabled(mEnabled);
1863 }
1864}
1865
1866// SaveState() and RestoreState() exist solely for purpose of recreating toolbars
1867// They should really be querying the project for current audio I/O state, but there

Callers

nothing calls this directly

Calls 1

SetEnabledMethod · 0.45

Tested by

no test coverage detected