/[svn]/linuxsampler/trunk/src/engines/InstrumentManagerBase.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/InstrumentManagerBase.h

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

revision 2334 by persson, Thu Mar 8 19:40:14 2012 UTC revision 2335 by persson, Sat Mar 17 06:19:01 2012 UTC
# Line 90  namespace LinuxSampler { Line 90  namespace LinuxSampler {
90                      RegionInfo[*i].refCount++;                      RegionInfo[*i].refCount++;
91                      SampleRefCount[(*i)->pSample]++;                      SampleRefCount[(*i)->pSample]++;
92                  }                  }
93                  HandBack(pResource, pConsumer, true);                  this->HandBack(pResource, pConsumer, true);
94                  RegionInfoMutex.Unlock();                  RegionInfoMutex.Unlock();
95              }              }
96    
# Line 126  namespace LinuxSampler { Line 126  namespace LinuxSampler {
126    
127              virtual void SetMode(const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode) {              virtual void SetMode(const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode) {
128                  dmsg(2,("InstrumentManagerBase: setting mode for %s (Index=%d) to %d\n",ID.FileName.c_str(),ID.Index,Mode));                  dmsg(2,("InstrumentManagerBase: setting mode for %s (Index=%d) to %d\n",ID.FileName.c_str(),ID.Index,Mode));
129                  SetAvailabilityMode(ID, static_cast<typename ResourceManager<instrument_id_t, I>::mode_t>(Mode));                  this->SetAvailabilityMode(ID, static_cast<typename ResourceManager<instrument_id_t, I>::mode_t>(Mode));
130              }              }
131    
132      protected:      protected:
# Line 241  namespace LinuxSampler { Line 241  namespace LinuxSampler {
241    
242                  if (pEntry->MaxSamplesPerCycle < maxSamplesPerCycle) {                  if (pEntry->MaxSamplesPerCycle < maxSamplesPerCycle) {
243                      dmsg(1,("Completely reloading instrument due to insufficient precached samples ...\n"));                      dmsg(1,("Completely reloading instrument due to insufficient precached samples ...\n"));
244                      Update(pResource, pConsumer);                      this->Update(pResource, pConsumer);
245                  }                  }
246              }              }
247      };      };

Legend:
Removed from v.2334  
changed lines
  Added in v.2335

  ViewVC Help
Powered by ViewVC