Reasonably sure here, won't be long before I am corrected if this is bad advice or something
If you use the
http://www.pjrc.com/teensy/gui/ to create your virtual audio pathway then, for most objects in the library, just count each connection made and then add memory blocks per the following rules;
Add one more memory block for each source object (AudioInput* AudioSynth* etc, no connections on left side in gui), counting connections again - as in, give it two for AudioInputI2S.
Add a block per 2.9mS of delay you set in any AudioEffectDelay object plus one (no harm bumping up to two) for safer margin.
If you use an object that may require extra memory blocks then try to find out maximum blocks it may acquire at any given time and add one more to this figure too.
Another extra block per terminating signal (object receiving doesn't have connections on right in gui) may be worth it but if you've obeyed the other rules then you can disobey this one imho.
Add one more just for good measure