33 |
#endif |
#endif |
34 |
|
|
35 |
#include "../engines/EngineFactory.h" |
#include "../engines/EngineFactory.h" |
36 |
|
#include "../engines/EngineChannelFactory.h" |
37 |
#include "../drivers/audio/AudioOutputDeviceFactory.h" |
#include "../drivers/audio/AudioOutputDeviceFactory.h" |
38 |
#include "../drivers/midi/MidiInputDeviceFactory.h" |
#include "../drivers/midi/MidiInputDeviceFactory.h" |
39 |
|
|
191 |
} |
} |
192 |
} |
} |
193 |
|
|
194 |
|
// check if some engine channel's parameter / status changed, if so notify the respective LSCP event subscribers |
195 |
|
{ |
196 |
|
std::set<EngineChannel*> engineChannels = EngineChannelFactory::EngineChannelInstances(); |
197 |
|
std::set<EngineChannel*>::iterator itEngineChannel = engineChannels.begin(); |
198 |
|
std::set<EngineChannel*>::iterator itEnd = engineChannels.end(); |
199 |
|
for (; itEngineChannel != itEnd; ++itEngineChannel) { |
200 |
|
if ((*itEngineChannel)->StatusChanged()) { |
201 |
|
SendLSCPNotify(LSCPEvent(LSCPEvent::event_channel_info, (*itEngineChannel)->iSamplerChannelIndex)); |
202 |
|
} |
203 |
|
} |
204 |
|
} |
205 |
|
|
206 |
//Now let's deliver late notifies (if any) |
//Now let's deliver late notifies (if any) |
207 |
NotifyBufferMutex.Lock(); |
NotifyBufferMutex.Lock(); |
208 |
for (std::map<int,String>::iterator iterNotify = bufferedNotifies.begin(); iterNotify != bufferedNotifies.end(); iterNotify++) { |
for (std::map<int,String>::iterator iterNotify = bufferedNotifies.begin(); iterNotify != bufferedNotifies.end(); iterNotify++) { |
591 |
Engine* pEngine = EngineFactory::Create(EngineName); |
Engine* pEngine = EngineFactory::Create(EngineName); |
592 |
result.Add("DESCRIPTION", pEngine->Description()); |
result.Add("DESCRIPTION", pEngine->Description()); |
593 |
result.Add("VERSION", pEngine->Version()); |
result.Add("VERSION", pEngine->Version()); |
594 |
delete pEngine; |
EngineFactory::Destroy(pEngine); |
595 |
} |
} |
596 |
catch (LinuxSamplerException e) { |
catch (LinuxSamplerException e) { |
597 |
result.Error(e); |
result.Error(e); |