本文整理汇总了C++中AudioProcessor::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ AudioProcessor::getName方法的具体用法?C++ AudioProcessor::getName怎么用?C++ AudioProcessor::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AudioProcessor
的用法示例。
在下文中一共展示了AudioProcessor::getName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mouseDoubleClick
void PMixInterpolationSpaceLayout::mouseDoubleClick (const MouseEvent& e)
{
if(graphEditor.getLassoSelection().getNumSelected() == 1)
{
NodeComponent* selectedItem = dynamic_cast<NodeComponent*>(graphEditor.getLassoSelection().getSelectedItem(0));
if (selectedItem)
{
AudioProcessor* proc = audioEngine.getDoc().getNodeForId(selectedItem->nodeID)->getProcessor();
bool hasParams = (proc->getNumParameters() > 0);
if (hasParams)
{
if (!InternalPluginFormat::isInternalFormat(proc->getName()))
{
double x = (double) e.getMouseDownX()/getWidth();
double y = (double) e.getMouseDownY()/getHeight();
audioEngine.getDoc().addPreset(selectedItem->nodeID, x, y);
}
}
}
}
}
示例2: renderLock
FilterIOConfigurationWindow::FilterIOConfigurationWindow (AudioProcessor& p)
: AudioProcessorEditor (&p),
title ("title", p.getName())
{
setOpaque (true);
title.setFont (title.getFont().withStyle (Font::bold));
addAndMakeVisible (title);
{
ScopedLock renderLock (p.getCallbackLock());
p.suspendProcessing (true);
p.releaseResources();
}
if (p.getBusCount (true) > 0 || p.canAddBus (true))
{
inConfig.reset (new InputOutputConfig (*this, true));
addAndMakeVisible (inConfig.get());
}
if (p.getBusCount (false) > 0 || p.canAddBus (false))
{
outConfig.reset (new InputOutputConfig (*this, false));
addAndMakeVisible (outConfig.get());
}
currentLayout = p.getBusesLayout();
setSize (400, (inConfig != nullptr && outConfig != nullptr ? 160 : 0) + 200);
}
示例3: mouseDown
void PMixInterpolationSpaceLayout::mouseDown (const MouseEvent& e)
{
selectedItems.deselectAll();
if (e.mods.isPopupMenu())
{
if(graphEditor.getLassoSelection().getNumSelected() == 1)
{
NodeComponent* selectedItem = dynamic_cast<NodeComponent*>(graphEditor.getLassoSelection().getSelectedItem(0));
if (selectedItem)
{
AudioProcessor* proc = audioEngine.getDoc().getNodeForId(selectedItem->nodeID)->getProcessor();
PopupMenu m;
bool hasParams = (proc->getNumParameters() > 0);
m.addItem (1, TRANS("Add preset for node"), hasParams);
const int r = m.show();
if (r == 1)
{
if (!InternalPluginFormat::isInternalFormat(proc->getName()))
{
double x = (double) e.getMouseDownX()/getWidth();
double y = (double) e.getMouseDownY()/getHeight();
audioEngine.getDoc().addPreset(selectedItem->nodeID, x, y);
}
}
}
}
}
else
{
addChildComponent (lassoComp);
lassoComp.beginLasso (e, this);
}
}