I am instanciating 2 Apple AudioUnits (Opening AU: AudioUnit:Effects/aufx,dcmp,appl), but getting an error "libc++abi.dylib: Pure virtual function called!" sporadically.
ScopedPointer<PluginDescription> lmtr = new PluginDescription();
lmtr->fileOrIdentifier = "AudioUnit:Effects/aufx,lmtr,appl";
AudioPluginInstance* plmtr = aupf->createInstanceFromDescription(*lmtr, sampleRate, bufferSize);
Adding in sleep statements mostly resolve the issue, but not always.
Is the Audio Unit created on a seperate thread? Is there a way of knowing when the Audio Unit has been successfully created?
Any ideas would be greatly appreciated.