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 * |
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 " + |