View Single Post
Old 09-28-2019, 09:06 AM   #10
TBProAudio
Human being with feelings
 
TBProAudio's Avatar
 
Join Date: May 2014
Location: Germany
Posts: 643
Default

Quote:
Originally Posted by Nonlinear View Post
I have an aaxplugin that I cloned from another plugin that works successfully in Pro Tools. The new one, however, doesn't work. Pro Tools gives an error message when I try to load the plug (see attached).

Visual Studio debugger reports the following upon attempting to load the plugin:

Invalid parameter passed to C runtime function.
Exception thrown at 0x00007FFF06839129 (KernelBase.dll) in ProTools.exe: 0x000006BA: The RPC server is unavailable.


A possible difference between the plugin that does NOT work and the one that DOES work is that the faulty plugin reports latency to the host. Is there a special requirement - or place in the code blocks - for reporting plugin latency to Pro Tools? I am currently using GetSampleRate() followed by SetLatency() in the Reset() function (also called as the last step in the constructor).

Maybe it's something else entirely? IDK

Any help appreciated!

A little bit late but:


AAX->SetLatency() works perfectly in audio thread!
__________________
www.tbproaudio.de
TBProAudio is offline   Reply With Quote