[ecasound] Confused looking at effect code

From: Jeremy Salwen <jeremysalwen@email-addr-hidden>
Date: Wed Jun 08 2011 - 22:58:30 EEST

Hi All, hopefully a dev can help me with this:

looking at this block in the ladspa effect:

  for(unsigned long m = 0; m < port_count_rep; m++) {
    if (lilv_port_is_a(port, LILV_PORT_CLASS_CONTROL)) {

      struct PARAM_DESCRIPTION pd;
      parse_parameter_hint_information(m, params.size() + 1, &pd);

      if (params.size() > 1) param_names_rep += ",";
      string tmp
(kvu_string_search_and_replace(string(plugin_desc->PortNames[m]), ",",
      param_names_rep += kvu_string_search_and_replace(tmp, ":", "\\:");

And also the snipped from parse_parameter_hint_information:

  pd->description = get_parameter_name(paramnum);

It seems to me that what is happening is

for each port {
  parse parameter => get_parameter_name=> read the n'th element of
  add the port name taken from plugin_desc->PortNames to the n'th place of

This is why I am confused. It seems that we read the port name from the
list (in a roundabout way) before the name is even placed there. Is there
some sort of other source for port names which get_parameter_name is somehow
accessing? Are ports different than parameters, and that's what's confusing

Thanks for the help,
Jeremy Salwen

EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.

Ecasound-list mailing list
Received on Thu Jun 9 00:15:03 2011

This archive was generated by hypermail 2.1.8 : Thu Jun 09 2011 - 00:15:03 EEST