/[svn]/linuxsampler/trunk/src/effects/EffectChain.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/effects/EffectChain.cpp

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

revision 3839 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC revision 3840 by schoenebeck, Fri Dec 11 19:39:09 2020 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2008 - 2016 Christian Schoenebeck                       *   *   Copyright (C) 2008 - 2020 Christian Schoenebeck                       *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   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 37  void EffectChain::AppendEffect(Effect* p Line 37  void EffectChain::AppendEffect(Effect* p
37  }  }
38    
39  void EffectChain::InsertEffect(Effect* pEffect, int iChainPos) throw (Exception) {  void EffectChain::InsertEffect(Effect* pEffect, int iChainPos) throw (Exception) {
40        if (iChainPos == vEntries.size()) {
41            AppendEffect(pEffect);
42            return;
43        }
44      if (iChainPos < 0 || iChainPos >= vEntries.size())      if (iChainPos < 0 || iChainPos >= vEntries.size())
45          throw Exception(          throw Exception(
46              "Cannot insert effect at chain position " +              "Cannot insert effect at chain position " +

Legend:
Removed from v.3839  
changed lines
  Added in v.3840

  ViewVC Help
Powered by ViewVC