3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
* Copyright (C) 2005 - 2008 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
25 |
|
|
26 |
#include "Sampler.h" |
#include "Sampler.h" |
27 |
|
|
28 |
|
#include "common/global_private.h" |
29 |
#include "engines/EngineFactory.h" |
#include "engines/EngineFactory.h" |
30 |
#include "engines/EngineChannelFactory.h" |
#include "engines/EngineChannelFactory.h" |
31 |
|
#include "plugins/InstrumentEditorFactory.h" |
32 |
#include "drivers/audio/AudioOutputDeviceFactory.h" |
#include "drivers/audio/AudioOutputDeviceFactory.h" |
33 |
#include "drivers/midi/MidiInputDeviceFactory.h" |
#include "drivers/midi/MidiInputDeviceFactory.h" |
34 |
#include "drivers/midi/MidiInstrumentMapper.h" |
#include "drivers/midi/MidiInstrumentMapper.h" |
35 |
|
#include "common/Features.h" |
36 |
#include "network/lscpserver.h" |
#include "network/lscpserver.h" |
37 |
|
|
38 |
namespace LinuxSampler { |
namespace LinuxSampler { |
70 |
|
|
71 |
void SamplerChannel::SetEngineType(String EngineType) throw (Exception) { |
void SamplerChannel::SetEngineType(String EngineType) throw (Exception) { |
72 |
dmsg(2,("SamplerChannel: Assigning engine type...")); |
dmsg(2,("SamplerChannel: Assigning engine type...")); |
73 |
|
|
74 |
|
if (pEngineChannel) { |
75 |
|
if (!strcasecmp(pEngineChannel->EngineName().c_str(), EngineType.c_str())) { |
76 |
|
dmsg(2,("OK\n")); |
77 |
|
return; |
78 |
|
} |
79 |
|
} |
80 |
|
|
81 |
|
fireEngineToBeChanged(); |
82 |
|
|
83 |
// create new engine channel |
// create new engine channel |
84 |
EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType); |
EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType); |
85 |
if (!pNewEngineChannel) throw Exception("Unknown engine type"); |
if (!pNewEngineChannel) throw Exception("Unknown engine type"); |
86 |
|
|
87 |
//FIXME: hack to allow fast retrieval of engine channel's sampler channel index |
pNewEngineChannel->SetSamplerChannel(this); |
|
pNewEngineChannel->iSamplerChannelIndex = Index(); |
|
88 |
|
|
89 |
// dereference midi input port. |
// dereference midi input port. |
90 |
MidiInputPort* pMidiInputPort = __GetMidiInputDevicePort(GetMidiInputPort()); |
MidiInputPort* pMidiInputPort = __GetMidiInputDevicePort(GetMidiInputPort()); |
115 |
this->iMidiPort = 0; |
this->iMidiPort = 0; |
116 |
|
|
117 |
pEngineChannel->StatusChanged(true); |
pEngineChannel->StatusChanged(true); |
118 |
|
fireEngineChanged(); |
119 |
dmsg(2,("OK\n")); |
dmsg(2,("OK\n")); |
120 |
} |
} |
121 |
|
|
216 |
throw Exception("Internal error: SamplerChannel index not found"); |
throw Exception("Internal error: SamplerChannel index not found"); |
217 |
} |
} |
218 |
|
|
219 |
|
Sampler* SamplerChannel::GetSampler() { |
220 |
|
return pSampler; |
221 |
|
} |
222 |
|
|
223 |
|
void SamplerChannel::AddEngineChangeListener(EngineChangeListener* l) { |
224 |
|
llEngineChangeListeners.AddListener(l); |
225 |
|
} |
226 |
|
|
227 |
|
void SamplerChannel::RemoveEngineChangeListener(EngineChangeListener* l) { |
228 |
|
llEngineChangeListeners.RemoveListener(l); |
229 |
|
} |
230 |
|
|
231 |
|
void SamplerChannel::RemoveAllEngineChangeListeners() { |
232 |
|
llEngineChangeListeners.RemoveAllListeners(); |
233 |
|
} |
234 |
|
|
235 |
|
void SamplerChannel::fireEngineToBeChanged() { |
236 |
|
for (int i = 0; i < llEngineChangeListeners.GetListenerCount(); i++) { |
237 |
|
llEngineChangeListeners.GetListener(i)->EngineToBeChanged(Index()); |
238 |
|
} |
239 |
|
} |
240 |
|
|
241 |
|
void SamplerChannel::fireEngineChanged() { |
242 |
|
for (int i = 0; i < llEngineChangeListeners.GetListenerCount(); i++) { |
243 |
|
llEngineChangeListeners.GetListener(i)->EngineChanged(Index()); |
244 |
|
} |
245 |
|
} |
246 |
|
|
247 |
MidiInputPort* SamplerChannel::__GetMidiInputDevicePort(int iMidiPort) { |
MidiInputPort* SamplerChannel::__GetMidiInputDevicePort(int iMidiPort) { |
248 |
MidiInputPort* pMidiInputPort = NULL; |
MidiInputPort* pMidiInputPort = NULL; |
249 |
MidiInputDevice* pMidiInputDevice = GetMidiInputDevice(); |
MidiInputDevice* pMidiInputDevice = GetMidiInputDevice(); |
258 |
// * Sampler |
// * Sampler |
259 |
|
|
260 |
Sampler::Sampler() { |
Sampler::Sampler() { |
261 |
|
eventHandler.SetSampler(this); |
262 |
} |
} |
263 |
|
|
264 |
Sampler::~Sampler() { |
Sampler::~Sampler() { |
269 |
return mSamplerChannels.size(); |
return mSamplerChannels.size(); |
270 |
} |
} |
271 |
|
|
272 |
|
void Sampler::AddChannelCountListener(ChannelCountListener* l) { |
273 |
|
llChannelCountListeners.AddListener(l); |
274 |
|
} |
275 |
|
|
276 |
|
void Sampler::RemoveChannelCountListener(ChannelCountListener* l) { |
277 |
|
llChannelCountListeners.RemoveListener(l); |
278 |
|
} |
279 |
|
|
280 |
|
void Sampler::fireChannelCountChanged(int NewCount) { |
281 |
|
for (int i = 0; i < llChannelCountListeners.GetListenerCount(); i++) { |
282 |
|
llChannelCountListeners.GetListener(i)->ChannelCountChanged(NewCount); |
283 |
|
} |
284 |
|
} |
285 |
|
|
286 |
|
void Sampler::fireChannelAdded(SamplerChannel* pChannel) { |
287 |
|
for (int i = 0; i < llChannelCountListeners.GetListenerCount(); i++) { |
288 |
|
llChannelCountListeners.GetListener(i)->ChannelAdded(pChannel); |
289 |
|
} |
290 |
|
} |
291 |
|
|
292 |
|
void Sampler::fireChannelToBeRemoved(SamplerChannel* pChannel) { |
293 |
|
for (int i = 0; i < llChannelCountListeners.GetListenerCount(); i++) { |
294 |
|
llChannelCountListeners.GetListener(i)->ChannelToBeRemoved(pChannel); |
295 |
|
} |
296 |
|
} |
297 |
|
|
298 |
|
void Sampler::AddAudioDeviceCountListener(AudioDeviceCountListener* l) { |
299 |
|
llAudioDeviceCountListeners.AddListener(l); |
300 |
|
} |
301 |
|
|
302 |
|
void Sampler::RemoveAudioDeviceCountListener(AudioDeviceCountListener* l) { |
303 |
|
llAudioDeviceCountListeners.RemoveListener(l); |
304 |
|
} |
305 |
|
|
306 |
|
void Sampler::fireAudioDeviceCountChanged(int NewCount) { |
307 |
|
for (int i = 0; i < llAudioDeviceCountListeners.GetListenerCount(); i++) { |
308 |
|
llAudioDeviceCountListeners.GetListener(i)->AudioDeviceCountChanged(NewCount); |
309 |
|
} |
310 |
|
} |
311 |
|
|
312 |
|
void Sampler::AddMidiDeviceCountListener(MidiDeviceCountListener* l) { |
313 |
|
llMidiDeviceCountListeners.AddListener(l); |
314 |
|
} |
315 |
|
|
316 |
|
void Sampler::RemoveMidiDeviceCountListener(MidiDeviceCountListener* l) { |
317 |
|
llMidiDeviceCountListeners.RemoveListener(l); |
318 |
|
} |
319 |
|
|
320 |
|
void Sampler::fireMidiDeviceCountChanged(int NewCount) { |
321 |
|
for (int i = 0; i < llMidiDeviceCountListeners.GetListenerCount(); i++) { |
322 |
|
llMidiDeviceCountListeners.GetListener(i)->MidiDeviceCountChanged(NewCount); |
323 |
|
} |
324 |
|
} |
325 |
|
|
326 |
|
void Sampler::fireMidiDeviceToBeDestroyed(MidiInputDevice* pDevice) { |
327 |
|
for (int i = 0; i < llMidiDeviceCountListeners.GetListenerCount(); i++) { |
328 |
|
llMidiDeviceCountListeners.GetListener(i)->MidiDeviceToBeDestroyed(pDevice); |
329 |
|
} |
330 |
|
} |
331 |
|
|
332 |
|
void Sampler::fireMidiDeviceCreated(MidiInputDevice* pDevice) { |
333 |
|
for (int i = 0; i < llMidiDeviceCountListeners.GetListenerCount(); i++) { |
334 |
|
llMidiDeviceCountListeners.GetListener(i)->MidiDeviceCreated(pDevice); |
335 |
|
} |
336 |
|
} |
337 |
|
|
338 |
|
void Sampler::AddVoiceCountListener(VoiceCountListener* l) { |
339 |
|
llVoiceCountListeners.AddListener(l); |
340 |
|
} |
341 |
|
|
342 |
|
void Sampler::RemoveVoiceCountListener(VoiceCountListener* l) { |
343 |
|
llVoiceCountListeners.RemoveListener(l); |
344 |
|
} |
345 |
|
|
346 |
|
void Sampler::fireVoiceCountChanged(int ChannelId, int NewCount) { |
347 |
|
for (int i = 0; i < llVoiceCountListeners.GetListenerCount(); i++) { |
348 |
|
llVoiceCountListeners.GetListener(i)->VoiceCountChanged(ChannelId, NewCount); |
349 |
|
} |
350 |
|
} |
351 |
|
|
352 |
|
void Sampler::AddStreamCountListener(StreamCountListener* l) { |
353 |
|
llStreamCountListeners.AddListener(l); |
354 |
|
} |
355 |
|
|
356 |
|
void Sampler::RemoveStreamCountListener(StreamCountListener* l) { |
357 |
|
llStreamCountListeners.RemoveListener(l); |
358 |
|
} |
359 |
|
|
360 |
|
void Sampler::fireStreamCountChanged(int ChannelId, int NewCount) { |
361 |
|
for (int i = 0; i < llStreamCountListeners.GetListenerCount(); i++) { |
362 |
|
llStreamCountListeners.GetListener(i)->StreamCountChanged(ChannelId, NewCount); |
363 |
|
} |
364 |
|
} |
365 |
|
|
366 |
|
void Sampler::AddBufferFillListener(BufferFillListener* l) { |
367 |
|
llBufferFillListeners.AddListener(l); |
368 |
|
} |
369 |
|
|
370 |
|
void Sampler::RemoveBufferFillListener(BufferFillListener* l) { |
371 |
|
llBufferFillListeners.RemoveListener(l); |
372 |
|
} |
373 |
|
|
374 |
|
void Sampler::fireBufferFillChanged(int ChannelId, String FillData) { |
375 |
|
for (int i = 0; i < llBufferFillListeners.GetListenerCount(); i++) { |
376 |
|
llBufferFillListeners.GetListener(i)->BufferFillChanged(ChannelId, FillData); |
377 |
|
} |
378 |
|
} |
379 |
|
|
380 |
|
void Sampler::AddTotalStreamCountListener(TotalStreamCountListener* l) { |
381 |
|
llTotalStreamCountListeners.AddListener(l); |
382 |
|
} |
383 |
|
|
384 |
|
void Sampler::RemoveTotalStreamCountListener(TotalStreamCountListener* l) { |
385 |
|
llTotalStreamCountListeners.RemoveListener(l); |
386 |
|
} |
387 |
|
|
388 |
|
void Sampler::fireTotalStreamCountChanged(int NewCount) { |
389 |
|
for (int i = 0; i < llTotalStreamCountListeners.GetListenerCount(); i++) { |
390 |
|
llTotalStreamCountListeners.GetListener(i)->TotalStreamCountChanged(NewCount); |
391 |
|
} |
392 |
|
} |
393 |
|
|
394 |
|
void Sampler::AddTotalVoiceCountListener(TotalVoiceCountListener* l) { |
395 |
|
llTotalVoiceCountListeners.AddListener(l); |
396 |
|
} |
397 |
|
|
398 |
|
void Sampler::RemoveTotalVoiceCountListener(TotalVoiceCountListener* l) { |
399 |
|
llTotalVoiceCountListeners.RemoveListener(l); |
400 |
|
} |
401 |
|
|
402 |
|
void Sampler::fireTotalVoiceCountChanged(int NewCount) { |
403 |
|
for (int i = 0; i < llTotalVoiceCountListeners.GetListenerCount(); i++) { |
404 |
|
llTotalVoiceCountListeners.GetListener(i)->TotalVoiceCountChanged(NewCount); |
405 |
|
} |
406 |
|
} |
407 |
|
|
408 |
|
void Sampler::AddFxSendCountListener(FxSendCountListener* l) { |
409 |
|
llFxSendCountListeners.AddListener(l); |
410 |
|
} |
411 |
|
|
412 |
|
void Sampler::RemoveFxSendCountListener(FxSendCountListener* l) { |
413 |
|
llFxSendCountListeners.RemoveListener(l); |
414 |
|
} |
415 |
|
|
416 |
|
void Sampler::fireFxSendCountChanged(int ChannelId, int NewCount) { |
417 |
|
for (int i = 0; i < llFxSendCountListeners.GetListenerCount(); i++) { |
418 |
|
llFxSendCountListeners.GetListener(i)->FxSendCountChanged(ChannelId, NewCount); |
419 |
|
} |
420 |
|
} |
421 |
|
|
422 |
|
void Sampler::EventHandler::EngineToBeChanged(int ChannelId) { |
423 |
|
// nothing to do here |
424 |
|
} |
425 |
|
|
426 |
|
void Sampler::EventHandler::EngineChanged(int ChannelId) { |
427 |
|
EngineChannel* engineChannel = pSampler->GetSamplerChannel(ChannelId)->GetEngineChannel(); |
428 |
|
if(engineChannel == NULL) return; |
429 |
|
engineChannel->AddFxSendCountListener(this); |
430 |
|
} |
431 |
|
|
432 |
|
void Sampler::EventHandler::FxSendCountChanged(int ChannelId, int NewCount) { |
433 |
|
pSampler->fireFxSendCountChanged(ChannelId, NewCount); |
434 |
|
} |
435 |
|
|
436 |
|
|
437 |
SamplerChannel* Sampler::AddSamplerChannel() { |
SamplerChannel* Sampler::AddSamplerChannel() { |
438 |
// if there's no sampler channel yet |
// if there's no sampler channel yet |
439 |
if (!mSamplerChannels.size()) { |
if (!mSamplerChannels.size()) { |
440 |
SamplerChannel* pChannel = new SamplerChannel(this); |
SamplerChannel* pChannel = new SamplerChannel(this); |
441 |
mSamplerChannels[0] = pChannel; |
mSamplerChannels[0] = pChannel; |
442 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_channel_count, 1)); |
fireChannelAdded(pChannel); |
443 |
|
fireChannelCountChanged(1); |
444 |
|
pChannel->AddEngineChangeListener(&eventHandler); |
445 |
return pChannel; |
return pChannel; |
446 |
} |
} |
447 |
|
|
456 |
// we found an unused index, so insert the new channel there |
// we found an unused index, so insert the new channel there |
457 |
SamplerChannel* pChannel = new SamplerChannel(this); |
SamplerChannel* pChannel = new SamplerChannel(this); |
458 |
mSamplerChannels[i] = pChannel; |
mSamplerChannels[i] = pChannel; |
459 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_channel_count, i)); |
fireChannelAdded(pChannel); |
460 |
|
fireChannelCountChanged(SamplerChannels()); |
461 |
|
pChannel->AddEngineChangeListener(&eventHandler); |
462 |
return pChannel; |
return pChannel; |
463 |
} |
} |
464 |
throw Exception("Internal error: could not find unoccupied sampler channel index."); |
throw Exception("Internal error: could not find unoccupied sampler channel index."); |
467 |
// we have not reached the index limit so we just add the channel past the highest index |
// we have not reached the index limit so we just add the channel past the highest index |
468 |
SamplerChannel* pChannel = new SamplerChannel(this); |
SamplerChannel* pChannel = new SamplerChannel(this); |
469 |
mSamplerChannels[lastIndex + 1] = pChannel; |
mSamplerChannels[lastIndex + 1] = pChannel; |
470 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_channel_count, lastIndex + 1)); |
fireChannelAdded(pChannel); |
471 |
|
fireChannelCountChanged(SamplerChannels()); |
472 |
|
pChannel->AddEngineChangeListener(&eventHandler); |
473 |
return pChannel; |
return pChannel; |
474 |
} |
} |
475 |
|
|
485 |
SamplerChannelMap::iterator iterChan = mSamplerChannels.begin(); |
SamplerChannelMap::iterator iterChan = mSamplerChannels.begin(); |
486 |
for (; iterChan != mSamplerChannels.end(); iterChan++) { |
for (; iterChan != mSamplerChannels.end(); iterChan++) { |
487 |
if (iterChan->second == pSamplerChannel) { |
if (iterChan->second == pSamplerChannel) { |
488 |
|
fireChannelToBeRemoved(pSamplerChannel); |
489 |
|
pSamplerChannel->RemoveAllEngineChangeListeners(); |
490 |
mSamplerChannels.erase(iterChan); |
mSamplerChannels.erase(iterChan); |
491 |
delete pSamplerChannel; |
delete pSamplerChannel; |
492 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_channel_count, mSamplerChannels.size())); |
fireChannelCountChanged(SamplerChannels()); |
493 |
return; |
return; |
494 |
} |
} |
495 |
} |
} |
525 |
} |
} |
526 |
} |
} |
527 |
|
|
528 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_audio_device_count, AudioOutputDevices())); |
fireAudioDeviceCountChanged(AudioOutputDevices()); |
529 |
return pDevice; |
return pDevice; |
530 |
} |
} |
531 |
|
|
562 |
// destroy and free device from memory |
// destroy and free device from memory |
563 |
delete pDevice; |
delete pDevice; |
564 |
|
|
565 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_audio_device_count, AudioOutputDevices())); |
fireAudioDeviceCountChanged(AudioOutputDevices()); |
566 |
break; |
break; |
567 |
} |
} |
568 |
} |
} |
576 |
for (uint i = 0; i < SamplerChannels(); i++) |
for (uint i = 0; i < SamplerChannels(); i++) |
577 |
if (GetSamplerChannel(i)->GetMidiInputDevice() == pDevice) throw Exception("Sampler channel " + ToString(i) + " is still connected to the midi input device."); |
if (GetSamplerChannel(i)->GetMidiInputDevice() == pDevice) throw Exception("Sampler channel " + ToString(i) + " is still connected to the midi input device."); |
578 |
|
|
579 |
|
fireMidiDeviceToBeDestroyed(pDevice); |
580 |
|
|
581 |
// disable device |
// disable device |
582 |
pDevice->StopListen(); |
pDevice->StopListen(); |
583 |
|
|
587 |
// destroy and free device from memory |
// destroy and free device from memory |
588 |
delete pDevice; |
delete pDevice; |
589 |
|
|
590 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_midi_device_count, MidiInputDevices())); |
fireMidiDeviceCountChanged(MidiInputDevices()); |
591 |
break; |
break; |
592 |
} |
} |
593 |
} |
} |
605 |
} |
} |
606 |
} |
} |
607 |
|
|
608 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_midi_device_count, MidiInputDevices())); |
fireMidiDeviceCreated(pDevice); |
609 |
|
fireMidiDeviceCountChanged(MidiInputDevices()); |
610 |
return pDevice; |
return pDevice; |
611 |
} |
} |
612 |
|
|
613 |
|
int Sampler::GetDiskStreamCount() { |
614 |
|
int count = 0; |
615 |
|
std::set<Engine*>::iterator it = EngineFactory::EngineInstances().begin(); |
616 |
|
|
617 |
|
for(; it != EngineFactory::EngineInstances().end(); it++) { |
618 |
|
count += (*it)->DiskStreamCount(); |
619 |
|
} |
620 |
|
|
621 |
|
return count; |
622 |
|
} |
623 |
|
|
624 |
int Sampler::GetVoiceCount() { |
int Sampler::GetVoiceCount() { |
625 |
int count = 0; |
int count = 0; |
626 |
std::set<Engine*>::iterator it = EngineFactory::EngineInstances().begin(); |
std::set<Engine*>::iterator it = EngineFactory::EngineInstances().begin(); |
680 |
std::cerr << "Sampler::Reset(): Exception occured while trying to delete all MIDI instrument maps, exiting.\n" << std::flush; |
std::cerr << "Sampler::Reset(): Exception occured while trying to delete all MIDI instrument maps, exiting.\n" << std::flush; |
681 |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
682 |
} |
} |
683 |
|
|
684 |
|
// unload all instrument editor DLLs |
685 |
|
InstrumentEditorFactory::ClosePlugins(); |
686 |
|
} |
687 |
|
|
688 |
|
bool Sampler::EnableDenormalsAreZeroMode() { |
689 |
|
Features::detect(); |
690 |
|
return Features::enableDenormalsAreZeroMode(); |
691 |
|
} |
692 |
|
|
693 |
|
void Sampler::fireStatistics() { |
694 |
|
static const LSCPEvent::event_t eventsArr[] = { |
695 |
|
LSCPEvent::event_voice_count, LSCPEvent::event_stream_count, |
696 |
|
LSCPEvent::event_buffer_fill, LSCPEvent::event_total_voice_count |
697 |
|
}; |
698 |
|
static const std::list<LSCPEvent::event_t> events(eventsArr, eventsArr + 4); |
699 |
|
|
700 |
|
if (LSCPServer::EventSubscribers(events)) |
701 |
|
{ |
702 |
|
LSCPServer::LockRTNotify(); |
703 |
|
std::map<uint,SamplerChannel*> channels = GetSamplerChannels(); |
704 |
|
std::map<uint,SamplerChannel*>::iterator iter = channels.begin(); |
705 |
|
for (; iter != channels.end(); iter++) { |
706 |
|
SamplerChannel* pSamplerChannel = iter->second; |
707 |
|
EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel(); |
708 |
|
if (!pEngineChannel) continue; |
709 |
|
Engine* pEngine = pEngineChannel->GetEngine(); |
710 |
|
if (!pEngine) continue; |
711 |
|
fireVoiceCountChanged(iter->first, pEngineChannel->GetVoiceCount()); |
712 |
|
fireStreamCountChanged(iter->first, pEngineChannel->GetDiskStreamCount()); |
713 |
|
fireBufferFillChanged(iter->first, pEngine->DiskStreamBufferFillPercentage()); |
714 |
|
fireTotalStreamCountChanged(GetDiskStreamCount()); |
715 |
|
fireTotalVoiceCountChanged(GetVoiceCount()); |
716 |
|
} |
717 |
|
LSCPServer::UnlockRTNotify(); |
718 |
|
} |
719 |
} |
} |
720 |
|
|
721 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |