Saving short audio clips in state information

really interesting question.

my first reaction was, “yeah, that sounds like a really bad idea”, but then when i thought about it, i can see why it would be quite handy to have the host store that audio data for each instance of the plugin.

i’m currently doing a midi sequence effect, and i certainly want to save my midi sequence as state data, but of course that’s a couple of orders of magnitude smaller than audio data…but yeah, it does pose a nice question.

Is there a limit (imposed, practical, or otherwise) on how much data can be saved in the setStateInformation method?