Esempio n. 1
0
 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();
 }
Esempio n. 2
0
//------------------------------------------------------------------------
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 ();
}
Esempio n. 3
0
    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 ();
    }
Esempio n. 4
0
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 ();
}