I had no problems in declaring & initializing a Minim variable in the same statement!
final Minim minim = new Minim(this);
I don't think the sketch's reference pointer changes after a size() or resize(), does it?
And I had some programs that needed some calculations to do before deciding which resolution to use.
So I had to postpone size() farther within setup() and had no apparent bugs doing so!
Only thing I know to be aware of, is that the sketch isn't aware of the subfolder /data,
neither about variables width & height, before setup() is called.
So, anything which depends on such, I postpone them to be initialized inside setup()!
At least, that's my adventures I got so far!
final Minim minim = new Minim(this);
I don't think the sketch's reference pointer changes after a size() or resize(), does it?
And I had some programs that needed some calculations to do before deciding which resolution to use.
So I had to postpone size() farther within setup() and had no apparent bugs doing so!
Only thing I know to be aware of, is that the sketch isn't aware of the subfolder /data,
neither about variables width & height, before setup() is called.
So, anything which depends on such, I postpone them to be initialized inside setup()!
At least, that's my adventures I got so far!