Mercurial > hg > svcore
comparison plugin/LADSPAPluginFactory.cpp @ 78:c983dda79f72
* Replace crash with warning when a transform could not be automatically
re-run
* More sensible default paths for Vamp plugin lookup (at least on Linux and
OS/X)
* A start to making the y coords for time value layers etc align
* Set sensible y coords for text labels in time instant and value layers
author | Chris Cannam |
---|---|
date | Thu, 13 Apr 2006 18:29:10 +0000 |
parents | 3086ff194ea0 |
children | 45175d8c5dc5 |
comparison
equal
deleted
inserted
replaced
77:2beca8ddcdc3 | 78:c983dda79f72 |
---|---|
321 (this, instrument, identifier, position, sampleRate, blockSize, channels, | 321 (this, instrument, identifier, position, sampleRate, blockSize, channels, |
322 descriptor); | 322 descriptor); |
323 | 323 |
324 m_instances.insert(instance); | 324 m_instances.insert(instance); |
325 | 325 |
326 std::cerr << "LADSPAPluginFactory::instantiatePlugin(" | |
327 << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl; | |
328 | |
326 return instance; | 329 return instance; |
327 } | 330 } |
328 | 331 |
329 return 0; | 332 return 0; |
330 } | 333 } |
349 for (std::set<RealTimePluginInstance *>::iterator ii = m_instances.begin(); | 352 for (std::set<RealTimePluginInstance *>::iterator ii = m_instances.begin(); |
350 ii != m_instances.end(); ++ii) { | 353 ii != m_instances.end(); ++ii) { |
351 QString itype, isoname, ilabel; | 354 QString itype, isoname, ilabel; |
352 PluginIdentifier::parseIdentifier((*ii)->getIdentifier(), itype, isoname, ilabel); | 355 PluginIdentifier::parseIdentifier((*ii)->getIdentifier(), itype, isoname, ilabel); |
353 if (isoname == soname) { | 356 if (isoname == soname) { |
354 // std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " is still in use for plugin " << ilabel << std::endl; | 357 std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " is still in use for plugin " << ilabel.toStdString() << std::endl; |
355 stillInUse = true; | 358 stillInUse = true; |
356 break; | 359 break; |
357 } | 360 } |
358 } | 361 } |
359 | 362 |
360 if (!stillInUse) { | 363 if (!stillInUse) { |
361 // std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl; | 364 std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl; |
362 unloadLibrary(soname); | 365 unloadLibrary(soname); |
363 } | 366 } |
367 | |
368 std::cerr << "LADSPAPluginFactory::releasePlugin(" | |
369 << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl; | |
364 } | 370 } |
365 | 371 |
366 const LADSPA_Descriptor * | 372 const LADSPA_Descriptor * |
367 LADSPAPluginFactory::getLADSPADescriptor(QString identifier) | 373 LADSPAPluginFactory::getLADSPADescriptor(QString identifier) |
368 { | 374 { |