comparison plugin/DSSIPluginFactory.cpp @ 1038:cc27f35aa75c cxx11

Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author Chris Cannam
date Tue, 03 Mar 2015 15:18:24 +0000
parents 7aa9088e9bcd
children a1cd5abcb38b
comparison
equal deleted inserted replaced
1037:bf0e5944289b 1038:cc27f35aa75c
80 list.push_back((ddesc->run_synth || ddesc->run_multiple_synths) ? "true" : "false"); 80 list.push_back((ddesc->run_synth || ddesc->run_multiple_synths) ? "true" : "false");
81 list.push_back(ddesc->run_multiple_synths ? "true" : "false"); 81 list.push_back(ddesc->run_multiple_synths ? "true" : "false");
82 list.push_back(m_taxonomy[*i]); 82 list.push_back(m_taxonomy[*i]);
83 list.push_back(QString("%1").arg(descriptor->PortCount)); 83 list.push_back(QString("%1").arg(descriptor->PortCount));
84 84
85 for (unsigned long p = 0; p < descriptor->PortCount; ++p) { 85 for (int p = 0; p < (int)descriptor->PortCount; ++p) {
86 86
87 int type = 0; 87 int type = 0;
88 if (LADSPA_IS_PORT_CONTROL(descriptor->PortDescriptors[p])) { 88 if (LADSPA_IS_PORT_CONTROL(descriptor->PortDescriptors[p])) {
89 type |= PortType::Control; 89 type |= PortType::Control;
90 } else { 90 } else {
373 defs = lrdf_get_setting_values(def_uri); 373 defs = lrdf_get_setting_values(def_uri);
374 } 374 }
375 375
376 unsigned int controlPortNumber = 1; 376 unsigned int controlPortNumber = 1;
377 377
378 for (unsigned long i = 0; i < ladspaDescriptor->PortCount; i++) { 378 for (int i = 0; i < (int)ladspaDescriptor->PortCount; i++) {
379 379
380 if (LADSPA_IS_PORT_CONTROL(ladspaDescriptor->PortDescriptors[i])) { 380 if (LADSPA_IS_PORT_CONTROL(ladspaDescriptor->PortDescriptors[i])) {
381 381
382 if (def_uri && defs) { 382 if (def_uri && defs) {
383 383
384 for (unsigned int j = 0; j < defs->count; j++) { 384 for (int j = 0; j < (int)defs->count; j++) {
385 if (defs->items[j].pid == controlPortNumber) { 385 if (defs->items[j].pid == controlPortNumber) {
386 // 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] << endl; 386 // 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] << endl;
387 m_portDefaults[ladspaDescriptor->UniqueID][i] = 387 m_portDefaults[ladspaDescriptor->UniqueID][i] =
388 defs->items[j].value; 388 defs->items[j].value;
389 } 389 }