mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
VST3: debug ParamTitlesChanged
This commit is contained in:
parent
95de61f74e
commit
3b4f9a231f
1 changed files with 10 additions and 0 deletions
|
|
@ -1562,13 +1562,23 @@ VST3PI::restartComponent (int32 flags)
|
||||||
for (int32 i = 0; i < n_params; ++i) {
|
for (int32 i = 0; i < n_params; ++i) {
|
||||||
Vst::ParameterInfo pi;
|
Vst::ParameterInfo pi;
|
||||||
if (_controller->getParameterInfo (i, pi) != kResultTrue) {
|
if (_controller->getParameterInfo (i, pi) != kResultTrue) {
|
||||||
|
#ifndef NDEBUG
|
||||||
|
printf ("Vst::kParamTitlesChanged: getParameterInfo (%d) failed\n", i);
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::map<Vst::ParamID, uint32_t>::const_iterator idx = _ctrl_id_index.find (pi.id);
|
std::map<Vst::ParamID, uint32_t>::const_iterator idx = _ctrl_id_index.find (pi.id);
|
||||||
if (idx != _ctrl_id_index.end ()) {
|
if (idx != _ctrl_id_index.end ()) {
|
||||||
Param& p (_ctrl_params[idx->second]);
|
Param& p (_ctrl_params[idx->second]);
|
||||||
|
#ifndef NDEBUG
|
||||||
|
printf ("Vst::kParamTitlesChanged: update label (%d) '%s' -> '%s'\n", i, p.label.c_str(), tchar_to_utf8 (pi.title).c_str ());
|
||||||
|
#endif
|
||||||
p.label = tchar_to_utf8 (pi.title).c_str ();
|
p.label = tchar_to_utf8 (pi.title).c_str ();
|
||||||
p.normal = pi.defaultNormalizedValue;
|
p.normal = pi.defaultNormalizedValue;
|
||||||
|
} else {
|
||||||
|
#ifndef NDEBUG
|
||||||
|
printf ("Vst::kParamTitlesChanged: no Ctrl for (%d)\n", i);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO notify GUI:
|
// TODO notify GUI:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue