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

Method UpdateSelectedPrefs

src/widgets/MeterPanel.cpp:395–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void MeterPanel::UpdateSelectedPrefs(int id)
396{
397 if (id == MeterPrefsID())
398 {
399#if USE_PORTMIXER
400 if (mIsInput && mSlider)
401 {
402 // Show or hide the input slider based on whether it works
403 auto gAudioIO = AudioIO::Get();
404 mSlider->SetEnabled(mEnabled && gAudioIO->InputMixerWorks());
405 }
406#endif
407 UpdatePrefs();
408 }
409}
410
411void MeterPanel::UpdateSliderControl()
412{

Callers

nothing calls this directly

Calls 4

MeterPrefsIDFunction · 0.85
GetFunction · 0.85
InputMixerWorksMethod · 0.80
SetEnabledMethod · 0.45

Tested by

no test coverage detected