13
0

use redesigned Route and VCA object architecture/API

This commit is contained in:
Paul Davis 2016-03-07 15:00:17 -05:00
parent 406e9d05ce
commit aee283f056
2 changed files with 2 additions and 3 deletions

View File

@ -282,10 +282,9 @@ ControlProtocol::route_get_peak_input_power (uint32_t table_index, uint32_t whic
return 0.0f; return 0.0f;
} }
return r->peak_meter().meter_level (which_input, MeterPeak); return r->peak_meter()->meter_level (which_input, MeterPeak);
} }
bool bool
ControlProtocol::route_get_muted (uint32_t table_index) ControlProtocol::route_get_muted (uint32_t table_index)
{ {

View File

@ -1227,7 +1227,7 @@ Strip::update_meter ()
} }
if (_meter && _transport_is_rolling && _metering_active) { if (_meter && _transport_is_rolling && _metering_active) {
float dB = const_cast<PeakMeter&> (_route->peak_meter()).meter_level (0, MeterMCP); float dB = _route->peak_meter()->meter_level (0, MeterMCP);
_meter->send_update (*_surface, dB); _meter->send_update (*_surface, dB);
return; return;
} }