/[svn]/linuxsampler/trunk/src/Sampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2375 by schoenebeck, Thu Oct 4 17:45:22 2012 UTC revision 2427 by persson, Sat Mar 2 07:03:04 2013 UTC
# Line 3  Line 3 
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  *
# Line 769  namespace LinuxSampler { Line 769  namespace LinuxSampler {
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++) {
# Line 785  namespace LinuxSampler { Line 785  namespace LinuxSampler {
785    
786              fireTotalStreamCountChanged(GetDiskStreamCount());              fireTotalStreamCountChanged(GetDiskStreamCount());
787              fireTotalVoiceCountChanged(GetVoiceCount());              fireTotalVoiceCountChanged(GetVoiceCount());
   
             LSCPServer::UnlockRTNotify();  
788          }          }
789      }      }
790    

Legend:
Removed from v.2375  
changed lines
  Added in v.2427

  ViewVC Help
Powered by ViewVC