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(); |
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 |
} |
} |