But I’ve figured out where my issue lies… It’s in the kludge I had to detect if this is the first or second time that Pro Tools is calling setStateInformation().
When I load a new PT session and instantiate the plugin I get a single call to SetChunk()
If I then save the PT session I get:
If I then open the saved session SetChunk() gets called twice… the first time with the default settings (and the default size)… and the second time with the saved settings from the session file (with the correct size).
Because my mixer is created before setStateInformation() is called it needs to ignore the first set of values - I had a kludge where it ignores the values until a flag was set. I had to fix that kludge to get the second values.