I think that I am looking for some serious knowledge about the PD or Wish executable (in Windows at least).
I have noticed that newly created patches "just" use the current audio/midi setup..., but patches that have had their audio/midi setup changed by switches at load will load without any parameters unless they are again specified at load (in a batch file). This is of course very much the most useful behaviour.
But where is the audio/midi setup information stored for each patch?. I have searched, and I cannot find any reference from within (my) patches.
I would (very much) like to be able to read (and better still write) to:
audioindev
audiooutdev
audioinchannels
audiooutchannels
audiobuf
etc.
Any ideas?