Mercurial > hg > svcore
comparison plugin/DSSIPluginFactory.cpp @ 259:dc46851837d6
* Fix many compile warnings, remove some debug output
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 13:36:23 +0000 |
parents | bf753a9abf0c |
children | 65311fb86166 |
comparison
equal
deleted
inserted
replaced
258:96a6dd889c68 | 259:dc46851837d6 |
---|---|
358 def_uri = lrdf_get_default_uri(ladspaDescriptor->UniqueID); | 358 def_uri = lrdf_get_default_uri(ladspaDescriptor->UniqueID); |
359 if (def_uri) { | 359 if (def_uri) { |
360 defs = lrdf_get_setting_values(def_uri); | 360 defs = lrdf_get_setting_values(def_uri); |
361 } | 361 } |
362 | 362 |
363 int controlPortNumber = 1; | 363 unsigned int controlPortNumber = 1; |
364 | 364 |
365 for (unsigned long i = 0; i < ladspaDescriptor->PortCount; i++) { | 365 for (unsigned long i = 0; i < ladspaDescriptor->PortCount; i++) { |
366 | 366 |
367 if (LADSPA_IS_PORT_CONTROL(ladspaDescriptor->PortDescriptors[i])) { | 367 if (LADSPA_IS_PORT_CONTROL(ladspaDescriptor->PortDescriptors[i])) { |
368 | 368 |
369 if (def_uri && defs) { | 369 if (def_uri && defs) { |
370 | 370 |
371 for (int j = 0; j < defs->count; j++) { | 371 for (unsigned int j = 0; j < defs->count; j++) { |
372 if (defs->items[j].pid == controlPortNumber) { | 372 if (defs->items[j].pid == controlPortNumber) { |
373 // std::cerr << "Default for this port (" << defs->items[j].pid << ", " << defs->items[j].label << ") is " << defs->items[j].value << "; applying this to port number " << i << " with name " << ladspaDescriptor->PortNames[i] << std::endl; | 373 // std::cerr << "Default for this port (" << defs->items[j].pid << ", " << defs->items[j].label << ") is " << defs->items[j].value << "; applying this to port number " << i << " with name " << ladspaDescriptor->PortNames[i] << std::endl; |
374 m_portDefaults[ladspaDescriptor->UniqueID][i] = | 374 m_portDefaults[ladspaDescriptor->UniqueID][i] = |
375 defs->items[j].value; | 375 defs->items[j].value; |
376 } | 376 } |