Master Track LevelMeasurer

For regular tracks, we have audioTrackPtr->getLevelMeterPlugin()->measurer. What is the equivalent for the master track?

All I can see is edit.getPreviewLevelMeasurer(). But that always returns a nullptr.

What piece am I missing?

I found it, we just need to use edit.getCurrentPlaybackContext()->masterLevels. That gives access to the LevelMeasurer needed to feed the meters.

1 Like