I’m using this code:
var apt As CAPlayThroughMBS=new CAPlayThroughMBS(iid,oid)
iid and oid are integers representing input and output devices. I’m finding that when either one is “invalid”, the app immediately crashes (no exception is thrown, it just disappears).
Currently, I sometimes get crashes at times the passed ID is a valid device (but are either unsupported or otherwise incompatible), so I can’t predict the call will crash.
Any idea for knowing beforehand whether the passed device ID will make the call crashing?
Or perhaps the function can be wrapped in a catch block in the plugin?