本文整理汇总了C++中AE_DSP_ADDON::CallMenuHook方法的典型用法代码示例。如果您正苦于以下问题:C++ AE_DSP_ADDON::CallMenuHook方法的具体用法?C++ AE_DSP_ADDON::CallMenuHook怎么用?C++ AE_DSP_ADDON::CallMenuHook使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AE_DSP_ADDON
的用法示例。
在下文中一共展示了AE_DSP_ADDON::CallMenuHook方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OpenAudioDSPMenu
bool CGUIDialogAudioDSPSettings::OpenAudioDSPMenu(unsigned int setupEntry)
{
if (setupEntry >= m_Menus.size())
return false;
AE_DSP_ADDON addon;
if (!CActiveAEDSP::GetInstance().GetAudioDSPAddon(m_Menus[setupEntry].addonId, addon))
return false;
AE_DSP_MENUHOOK hook;
AE_DSP_MENUHOOK_DATA hookData;
hook.category = m_Menus[setupEntry].hook.category;
hook.iHookId = m_Menus[setupEntry].hook.iHookId;
hook.iLocalizedStringId = m_Menus[setupEntry].hook.iLocalizedStringId;
hook.iRelevantModeId = m_Menus[setupEntry].hook.iRelevantModeId;
hookData.category = m_Menus[setupEntry].hook.category;
switch (hookData.category)
{
case AE_DSP_MENUHOOK_PRE_PROCESS:
case AE_DSP_MENUHOOK_MASTER_PROCESS:
case AE_DSP_MENUHOOK_RESAMPLE:
case AE_DSP_MENUHOOK_POST_PROCESS:
hookData.data.iStreamId = m_ActiveStreamId;
break;
default:
break;
}
/*!
* @note the addon dialog becomes always opened on the back of Kodi ones for this reason a
* "<animation effect="fade" start="100" end="0" time="400" condition="Window.IsVisible(Addon)">Conditional</animation>"
* on skin is needed to hide dialog.
*/
addon->CallMenuHook(hook, hookData);
return true;
}