comparison transform/ModelTransformerFactory.cpp @ 924:85879408f665 tonioni

Cancel async layer creation in Tony when selection is changed during it
author Chris Cannam
date Mon, 16 Jun 2014 09:28:12 +0100
parents a2689db084f4
children d03b3d956358
comparison
equal deleted inserted replaced
923:defbe5bc47b7 924:85879408f665
104 plugin = vp; 104 plugin = vp;
105 105
106 } else if (RealTimePluginFactory::instanceFor(id)) { 106 } else if (RealTimePluginFactory::instanceFor(id)) {
107 107
108 RealTimePluginFactory *factory = RealTimePluginFactory::instanceFor(id); 108 RealTimePluginFactory *factory = RealTimePluginFactory::instanceFor(id);
109 const RealTimePluginDescriptor *desc = factory->getPluginDescriptor(id);
110 109
111 size_t sampleRate = inputModel->getSampleRate(); 110 size_t sampleRate = inputModel->getSampleRate();
112 size_t blockSize = 1024; 111 size_t blockSize = 1024;
113 size_t channels = 1; 112 size_t channels = 1;
114 if (source) { 113 if (source) {
232 if (!models.empty()) { 231 if (!models.empty()) {
233 QString imn = input.getModel()->objectName(); 232 QString imn = input.getModel()->objectName();
234 QString trn = 233 QString trn =
235 TransformFactory::getInstance()->getTransformFriendlyName 234 TransformFactory::getInstance()->getTransformFriendlyName
236 (transforms[0].getIdentifier()); 235 (transforms[0].getIdentifier());
237 for (int i = 0; i < models.size(); ++i) { 236 for (int i = 0; i < (int)models.size(); ++i) {
238 if (imn != "") { 237 if (imn != "") {
239 if (trn != "") { 238 if (trn != "") {
240 models[i]->setObjectName(tr("%1: %2").arg(imn).arg(trn)); 239 models[i]->setObjectName(tr("%1: %2").arg(imn).arg(trn));
241 } else { 240 } else {
242 models[i]->setObjectName(imn); 241 models[i]->setObjectName(imn);