本文整理汇总了C++中AE_DSP_ADDON::GetFriendlyName方法的典型用法代码示例。如果您正苦于以下问题:C++ AE_DSP_ADDON::GetFriendlyName方法的具体用法?C++ AE_DSP_ADDON::GetFriendlyName怎么用?C++ AE_DSP_ADDON::GetFriendlyName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AE_DSP_ADDON
的用法示例。
在下文中一共展示了AE_DSP_ADDON::GetFriendlyName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: InitializeSettings
//.........这里部分代码省略.........
group = AddGroup(category, 15090);
if (group == NULL)
{
CLog::Log(LOGERROR, "CGUIDialogAudioDSPSettings: unable to setup settings group for '%s'", g_localizeStrings.Get(15090).c_str());
return;
}
m_OutputChannels = StringUtils::Format("%i", m_ActiveStreamProcess->GetOutputChannels());
AddInfoLabelButton(group, SETTING_STREAM_INFO_OUTPUT_CHANNELS, 21444, 0, m_OutputChannels);
m_OutputChannelNames = m_ActiveStreamProcess->GetOutputChannelNames();
AddInfoLabelButton(group, SETTING_STREAM_INFO_OUTPUT_CHANNEL_NAMES, 15091, 0, m_OutputChannelNames);
m_OutputSamplerate = StringUtils::Format("%i Hz", (int)m_ActiveStreamProcess->GetOutputSamplerate());
AddInfoLabelButton(group, SETTING_STREAM_INFO_OUTPUT_SAMPLERATE, 613, 0, m_OutputSamplerate);
group = AddGroup(category, 15081);
if (group == NULL)
{
CLog::Log(LOGERROR, "CGUIDialogAudioDSPSettings: unable to setup settings group for '%s'", g_localizeStrings.Get(15081).c_str());
return;
}
m_CPUUsage = StringUtils::Format("%.02f %%", m_ActiveStreamProcess->GetCPUUsage());
AddInfoLabelButton(group, SETTING_STREAM_INFO_CPU_USAGE, 15092, 0, m_CPUUsage);
bool foundPreProcess = false, foundPostProcess = false;
for (unsigned int i = 0; i < m_ActiveModes.size(); i++)
{
AE_DSP_ADDON addon;
if (CActiveAEDSP::GetInstance().GetAudioDSPAddon(m_ActiveModes[i]->AddonID(), addon))
{
std::string label;
switch (m_ActiveModes[i]->ModeType())
{
case AE_DSP_MODE_TYPE_INPUT_RESAMPLE:
group = AddGroup(category, 15087, -1, true, true);
label = StringUtils::Format(g_localizeStrings.Get(15082).c_str(), m_ActiveStreamProcess->GetProcessSamplerate());
break;
case AE_DSP_MODE_TYPE_OUTPUT_RESAMPLE:
group = AddGroup(category, 15088, -1, true, true);
label = StringUtils::Format(g_localizeStrings.Get(15083).c_str(), m_ActiveStreamProcess->GetOutputSamplerate());
break;
case AE_DSP_MODE_TYPE_MASTER_PROCESS:
group = AddGroup(category, 15084, -1, true, true);
label = g_localizeStrings.GetAddonString(addon->ID(), m_ActiveModes[i]->ModeName());
break;
case AE_DSP_MODE_TYPE_PRE_PROCESS:
if (!foundPreProcess)
{
foundPreProcess = true;
group = AddGroup(category, 15085, -1, true, true);
}
label = g_localizeStrings.GetAddonString(addon->ID(), m_ActiveModes[i]->ModeName());
break;
case AE_DSP_MODE_TYPE_POST_PROCESS:
if (!foundPostProcess)
{
foundPostProcess = true;
group = AddGroup(category, 15086, -1, true, true);
}
label = g_localizeStrings.GetAddonString(addon->ID(), m_ActiveModes[i]->ModeName());
break;
default:
{
label += g_localizeStrings.GetAddonString(addon->ID(), m_ActiveModes[i]->ModeName());
label += " - ";
label += addon->GetFriendlyName();
}
};
m_ActiveModesData[i].CPUUsage = StringUtils::Format("%.02f %%", m_ActiveModes[i]->CPUUsage());
MenuHookMember menu;
menu.addonId = -1;
AE_DSP_MENUHOOKS hooks;
m_ActiveModesData[i].MenuListPtr = -1;
if (CActiveAEDSP::GetInstance().GetMenuHooks(m_ActiveModes[i]->AddonID(), AE_DSP_MENUHOOK_INFORMATION, hooks))
{
for (unsigned int j = 0; j < hooks.size(); j++)
{
if (hooks[j].iRelevantModeId != m_ActiveModes[i]->AddonModeNumber())
continue;
menu.addonId = m_ActiveModes[i]->AddonID();
menu.hook.category = hooks[j].category;
menu.hook.iHookId = hooks[j].iHookId;
menu.hook.iLocalizedStringId = hooks[j].iLocalizedStringId;
menu.hook.iRelevantModeId = hooks[j].iRelevantModeId;
m_Menus.push_back(menu);
m_ActiveModesData[i].MenuListPtr = m_Menus.size()-1;
label += " ...";
break;
}
}
m_ActiveModesData[i].MenuName = label;
std::string settingId = StringUtils::Format("%s%i", SETTING_STREAM_INFO_MODE_CPU_USAGE, i);
AddInfoLabelButton(group, settingId, 15041, 0, m_ActiveModesData[i].CPUUsage);
}
}
}
}