/[svn]/linuxsampler/trunk/src/drivers/audio/AudioOutputDevice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/audio/AudioOutputDevice.cpp

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

revision 2197 by schoenebeck, Mon Oct 4 12:20:23 2010 UTC revision 2198 by iliev, Sun Jul 3 18:06:51 2011 UTC
# Line 270  namespace LinuxSampler { Line 270  namespace LinuxSampler {
270      void AudioOutputDevice::RemoveSendEffectChain(uint iChain) throw (Exception) {      void AudioOutputDevice::RemoveSendEffectChain(uint iChain) throw (Exception) {
271          if (iChain >= vEffectChains.size())          if (iChain >= vEffectChains.size())
272              throw Exception(              throw Exception(
273                  "Could not remove master effect chain " + ToString(iChain) +                  "Could not remove send effect chain " + ToString(iChain) +
274                  ", index out of bounds"                  ", index out of bounds"
275              );              );
276          std::vector<EffectChain*>::iterator iter = vEffectChains.begin();          std::vector<EffectChain*>::iterator iter = vEffectChains.begin();
# Line 284  namespace LinuxSampler { Line 284  namespace LinuxSampler {
284          return vEffectChains[iChain];          return vEffectChains[iChain];
285      }      }
286    
287        EffectChain* AudioOutputDevice::SendEffectChainByID(uint iChainID) const {
288            for (int i = 0; i < SendEffectChainCount(); i++) {
289                if (SendEffectChain(i)->ID() == iChainID) return SendEffectChain(i);
290            }
291    
292            return NULL;
293        }
294    
295      uint AudioOutputDevice::SendEffectChainCount() const {      uint AudioOutputDevice::SendEffectChainCount() const {
296          return vEffectChains.size();          return vEffectChains.size();
297      }      }

Legend:
Removed from v.2197  
changed lines
  Added in v.2198

  ViewVC Help
Powered by ViewVC