void Meter::StartMonitoring() { if (gAudioIO->IsMonitoring()) gAudioIO->StopStream(); else { #if WANT_METER_MENU if (mMeterDisabled){ wxCommandEvent dummy; OnDisableMeter(dummy); } #endif AudacityProject *p = GetActiveProject(); if (p) { gAudioIO->StartMonitoring(p->GetRate()); MeterToolBar *bar = p->GetMeterToolBar(); if (bar) { Meter *play, *record; bar->GetMeters(&play, &record); gAudioIO->SetMeters(record, play); } } } }
void ControlToolBar::SetVUMeters(AudacityProject *p) { MeterToolBar *bar; bar = p->GetMeterToolBar(); if (bar) { Meter *play, *record; bar->GetMeters(&play, &record); gAudioIO->SetMeters(record, play); } }