Skip to content

Instantly share code, notes, and snippets.

@milesegan
Created March 11, 2014 03:56
Show Gist options
  • Save milesegan/9479254 to your computer and use it in GitHub Desktop.
Save milesegan/9479254 to your computer and use it in GitHub Desktop.
vst startup hook
VST_EXPORT AEffect* VSTPluginMain (audioMasterCallback audioMaster)
{
if (!audioMaster(0, audioMasterVersion, 0, 0, 0, 0)) return 0;
AudioEffect* effect = new MyVST(audioMaster);
effect->init(); // <--- implement your own init() method that configures the vst
return effect->getAeffect ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment