The title might be a bit misleading because this only happens if one does not resize() the level meter sources in prepareToPlay(), however I thought it might be good to add this to the readme.
To reproduce, open a plugin with level meters in the juce plugin host, save the filter graph (ctrl+s) while the plugin is open, then restart the plugin host.
The exception is an out of range exception which occurs in LevelMeterSources.h in getMaxLevel():
The obvious fix is to call resize() on the level meter sources before processing audio. I didn't do that because I followed the tutorial and it wasn't done there.
The title might be a bit misleading because this only happens if one does not
resize()
the level meter sources inprepareToPlay()
, however I thought it might be good to add this to the readme.To reproduce, open a plugin with level meters in the juce plugin host, save the filter graph (ctrl+s) while the plugin is open, then restart the plugin host.
The exception is an out of range exception which occurs in LevelMeterSources.h in getMaxLevel():
The obvious fix is to call resize() on the level meter sources before processing audio. I didn't do that because I followed the tutorial and it wasn't done there.