1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2008 - 2010 Christian Schoenebeck * |
* Copyright (C) 2008 - 2013 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 * |
95 |
int EffectChain::EffectCount() const { |
int EffectChain::EffectCount() const { |
96 |
return vEntries.size(); |
return vEntries.size(); |
97 |
} |
} |
98 |
|
|
99 |
|
void EffectChain::Reconnect(AudioOutputDevice* pDevice) { |
100 |
|
for (int i = 0; i < vEntries.size(); ++i) { |
101 |
|
Effect* pEffect = vEntries[i].pEffect; |
102 |
|
pEffect->InitEffect(pDevice); |
103 |
|
} |
104 |
|
} |
105 |
|
|
106 |
void EffectChain::SetEffectActive(int iChainPos, bool bOn) throw (Exception) { |
void EffectChain::SetEffectActive(int iChainPos, bool bOn) throw (Exception) { |
107 |
if (iChainPos < 0 || iChainPos >= vEntries.size()) |
if (iChainPos < 0 || iChainPos >= vEntries.size()) |