예제 #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();
 }
예제 #2
0
파일: main.cpp 프로젝트: eriser/JFilters
//------------------------------------------------------------------------
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 ();
}
예제 #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 ();
    }
예제 #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 ();
}