本文整理汇总了C++中AE_DSP_MENUHOOKS::begin方法的典型用法代码示例。如果您正苦于以下问题:C++ AE_DSP_MENUHOOKS::begin方法的具体用法?C++ AE_DSP_MENUHOOKS::begin怎么用?C++ AE_DSP_MENUHOOKS::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AE_DSP_MENUHOOKS
的用法示例。
在下文中一共展示了AE_DSP_MENUHOOKS::begin方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ADSPRemoveMenuHook
void CAddonCallbacksADSP::ADSPRemoveMenuHook(void *addonData, AE_DSP_MENUHOOK *hook)
{
CActiveAEDSPAddon *client = GetAudioDSPAddon(addonData);
if (!hook || !client)
{
CLog::Log(LOGERROR, "Audio DSP - %s - invalid handler data", __FUNCTION__);
return;
}
AE_DSP_MENUHOOKS *hooks = client->GetMenuHooks();
if (hooks)
{
for (unsigned int i = 0; i < hooks->size(); i++)
{
if (hooks->at(i).iHookId == hook->iHookId)
{
/* remove this hook */
hooks->erase(hooks->begin()+i);
break;
}
}
}
}
示例2: cb_remove_menu_hook
void CActiveAEDSPAddon::cb_remove_menu_hook(void *kodiInstance, AE_DSP_MENUHOOK *hook)
{
CActiveAEDSPAddon *client = static_cast<CActiveAEDSPAddon*>(kodiInstance);
if (!hook || !client)
{
CLog::Log(LOGERROR, "Audio DSP - %s - invalid handler data", __FUNCTION__);
return;
}
AE_DSP_MENUHOOKS *hooks = client->GetMenuHooks();
if (hooks)
{
for (unsigned int i = 0; i < hooks->size(); i++)
{
if (hooks->at(i).iHookId == hook->iHookId)
{
/* remove this hook */
hooks->erase(hooks->begin()+i);
break;
}
}
}
}