PUBLIC AEffect* VSTPluginMain(audioMasterCallback audioMaster) { if (!audioMaster (0, audioMasterVersion, 0, 0, 0, 0)) { return 0; } AudioEffect* effect = new CsoundVST(audioMaster); if (!effect) { return 0; } return effect->getAeffect(); }
//------------------------------------------------------------------------ VST_EXPORT __declspec(dllexport) int main(audioMasterCallback audioMaster) { // Get VST Version if (!audioMaster (0, audioMasterVersion, 0, 0, 0, 0)) return 0; // old version // Create the AudioEffect AudioEffect* effect = createEffectInstance (audioMaster); if (!effect) return 0; return (int)effect->getAeffect (); }
VST_EXPORT AEffect* VSTInstrumentMain (audioMasterCallback audioMaster) { // Get VST Version of the Host if (!audioMaster (0, audioMasterVersion, 0, 0, 0, 0)) return 0; // old version // Create the AudioEffect AudioEffect* effect = createEffectInstance (audioMaster,true); if (!effect) return 0; // Return the VST AEffect structur return effect->getAeffect (); }
AEffect *main (audioMasterCallback audioMaster) { // get vst version if (!audioMaster (0, audioMasterVersion, 0, 0, 0, 0)) return 0; // old version AudioEffect* effect = new LowPass(audioMaster); if (!effect) return 0; if (oome) { delete effect; return 0; } return effect->getAeffect (); }