Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

SetLatency produces a crash in the VST host (only with VST3) #66

Open
josephernest opened this issue Oct 11, 2016 · 1 comment
Open

Comments

@josephernest
Copy link

If you do:

python duplicate.py IPlugEffect ABC Test
cd ABC
nano ABC/ABC.cpp                # just add SetLatency(8192);
./makedist-mac.command

Launch Reaper64 (for example): the VST3 crashes Reaper. VST and AU are working though.


Here is the ABC.cpp code:


ABC::ABCIPlugInstanceInfo instanceInfo)
  : IPLUG_CTOR(kNumParams, kNumPrograms, instanceInfo), mGain(1.)
{
   /*
   [...]
   */
  AttachGraphics(pGraphics);

  SetLatency(8192);

  //MakePreset("preset 1", ... );
  MakeDefaultPreset((char *) "-", kNumPrograms);
}

@josephernest
Copy link
Author

Do you think SetLatency(...); should be put elsewhere than in the constructor ABC::ABCIPlugInstanceInfo instanceInfo) : IPLUG_CTOR(kNumParams, kNumPrograms, instanceInfo) @olilarkin ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant