Mercurial > hg > svapp
comparison audioio/AudioGenerator.cpp @ 23:cb23944ce9e2
* Add icon for playback plugin edit button
* Make playback plugins respond to parameter & program changes while their
edit dialog is still visible
author | Chris Cannam |
---|---|
date | Thu, 23 Mar 2006 18:42:17 +0000 |
parents | 7f32bb07629a |
children | cc48a7189152 |
comparison
equal
deleted
inserted
replaced
22:7f32bb07629a | 23:cb23944ce9e2 |
---|---|
115 { | 115 { |
116 if (m_synthMap.find(model) == m_synthMap.end()) return; | 116 if (m_synthMap.find(model) == m_synthMap.end()) return; |
117 | 117 |
118 RealTimePluginInstance *plugin = m_synthMap[model]; | 118 RealTimePluginInstance *plugin = m_synthMap[model]; |
119 if (plugin) { | 119 if (plugin) { |
120 QMutexLocker locker(&m_mutex); | |
121 plugin->setParametersFromXml(configurationXml); | 120 plugin->setParametersFromXml(configurationXml); |
122 } | 121 } |
123 } | 122 } |
124 | 123 |
125 QString | 124 QString |
191 } | 190 } |
192 | 191 |
193 RealTimePluginInstance * | 192 RealTimePluginInstance * |
194 AudioGenerator::loadPlugin(QString pluginId, QString program) | 193 AudioGenerator::loadPlugin(QString pluginId, QString program) |
195 { | 194 { |
196 // QString pluginId = "dssi:/usr/lib/dssi/dssi-vst.so:FEARkILLERrev1.dll"; | |
197 // QString pluginId = "dssi:/usr/lib/dssi/hexter.so:hexter"; | |
198 // QString pluginId = "dssi:/usr/lib/dssi/sineshaper.so:sineshaper"; | |
199 // QString pluginId = "dssi:/usr/local/lib/dssi/xsynth-dssi.so:Xsynth"; | |
200 // QString pluginId = "dssi:/usr/local/lib/dssi/trivial_synth.so:TS"; | |
201 RealTimePluginFactory *factory = | 195 RealTimePluginFactory *factory = |
202 RealTimePluginFactory::instanceFor(pluginId); | 196 RealTimePluginFactory::instanceFor(pluginId); |
203 | 197 |
204 if (!factory) { | 198 if (!factory) { |
205 std::cerr << "Failed to get plugin factory" << std::endl; | 199 std::cerr << "Failed to get plugin factory" << std::endl; |