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 - 2012 Christian Schoenebeck * |
* Copyright (C) 2005 - 2013 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 * |
769 |
|
|
770 |
if (LSCPServer::EventSubscribers(events)) |
if (LSCPServer::EventSubscribers(events)) |
771 |
{ |
{ |
772 |
LSCPServer::LockRTNotify(); |
LockGuard lock(LSCPServer::RTNotifyMutex); |
773 |
std::map<uint,SamplerChannel*> channels = GetSamplerChannels(); |
std::map<uint,SamplerChannel*> channels = GetSamplerChannels(); |
774 |
std::map<uint,SamplerChannel*>::iterator iter = channels.begin(); |
std::map<uint,SamplerChannel*>::iterator iter = channels.begin(); |
775 |
for (; iter != channels.end(); iter++) { |
for (; iter != channels.end(); iter++) { |
785 |
|
|
786 |
fireTotalStreamCountChanged(GetDiskStreamCount()); |
fireTotalStreamCountChanged(GetDiskStreamCount()); |
787 |
fireTotalVoiceCountChanged(GetVoiceCount()); |
fireTotalVoiceCountChanged(GetVoiceCount()); |
|
|
|
|
LSCPServer::UnlockRTNotify(); |
|
788 |
} |
} |
789 |
} |
} |
790 |
|
|