本文整理汇总了C++中AudioEffect::getAeffect方法的典型用法代码示例。如果您正苦于以下问题:C++ AudioEffect::getAeffect方法的具体用法?C++ AudioEffect::getAeffect怎么用?C++ AudioEffect::getAeffect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AudioEffect
的用法示例。
在下文中一共展示了AudioEffect::getAeffect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VSTPluginMain
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: __declspec
//------------------------------------------------------------------------
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: VSTInstrumentMain
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: LowPass
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 ();
}