2624 |
if (!pEffectInfo) |
if (!pEffectInfo) |
2625 |
throw Exception("There is no effect with index " + ToString(iEffectIndex)); |
throw Exception("There is no effect with index " + ToString(iEffectIndex)); |
2626 |
Effect* pEffect = EffectFactory::Create(pEffectInfo); |
Effect* pEffect = EffectFactory::Create(pEffectInfo); |
2627 |
result.Add(pEffect->ID()); |
result = pEffect->ID(); // success |
2628 |
} catch (Exception e) { |
} catch (Exception e) { |
2629 |
result.Error(e); |
result.Error(e); |
2630 |
} |
} |
2768 |
throw Exception("There is no audio output device with index " + ToString(iAudioOutputDevice) + "."); |
throw Exception("There is no audio output device with index " + ToString(iAudioOutputDevice) + "."); |
2769 |
AudioOutputDevice* pDevice = devices[iAudioOutputDevice]; |
AudioOutputDevice* pDevice = devices[iAudioOutputDevice]; |
2770 |
EffectChain* pEffectChain = pDevice->AddSendEffectChain(); |
EffectChain* pEffectChain = pDevice->AddSendEffectChain(); |
2771 |
result.Add(pEffectChain->ID()); |
result = pEffectChain->ID(); |
2772 |
} catch (Exception e) { |
} catch (Exception e) { |
2773 |
result.Error(e); |
result.Error(e); |
2774 |
} |
} |