Useful debug code that helped solve it:
void CFFPluginArray::Dump()
{
printf("\n");
printf("Count = %d, LastLoadedIdx = %d\n", m_Count, m_LastLoadedIdx);
for (int i = 0; i < m_Count; i++) {
CString s;
if (m_Plugin[i].IsLoaded()) {
CFFPlugin *pp = &m_Plugin[i].m_Plugin;
pp->GetPluginName(s);
printf("%d: '%s' %s\n", i, s, m_Plugin[i].IsBypassed() ? "[BYPASS]" : "");
for (int j = 0; j < pp->GetNumParams(); j++) {
pp->GetParamName(j, s);
if (m_Plugin[i].IsCreated()) {
printf("\t'%s' = %g\n", s, m_Plugin[i].m_Instance.GetParam(j));
} else
printf("\t'%s'\n", s);
}
} else
printf("%d: (empty)\n", i);
}
}
No comments:
Post a Comment