1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2008 Christian Schoenebeck * |
* Copyright (C) 2008, 2010 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 * |
27 |
delete vInputChannels[i]; |
delete vInputChannels[i]; |
28 |
for (int i = 0; i < vOutputChannels.size(); ++i) |
for (int i = 0; i < vOutputChannels.size(); ++i) |
29 |
delete vOutputChannels[i]; |
delete vOutputChannels[i]; |
30 |
|
for (int i = 0; i < vInputControls.size(); ++i) |
31 |
|
delete vInputControls[i]; |
32 |
|
for (int i = 0; i < vOutputControls.size(); ++i) |
33 |
|
delete vOutputControls[i]; |
34 |
} |
} |
35 |
|
|
36 |
void Effect::InitEffect(AudioOutputDevice* pDevice) { |
void Effect::InitEffect(AudioOutputDevice* pDevice) throw (Exception) { |
37 |
} |
} |
38 |
|
|
39 |
AudioChannel* Effect::InputChannel(uint ChannelIndex) const { |
AudioChannel* Effect::InputChannel(uint ChannelIndex) const { |
54 |
return vOutputChannels.size(); |
return vOutputChannels.size(); |
55 |
} |
} |
56 |
|
|
57 |
|
EffectControl* Effect::InputControl(uint ControlIndex) const { |
58 |
|
if (ControlIndex >= vInputControls.size()) return NULL; |
59 |
|
return vInputControls[ControlIndex]; |
60 |
|
} |
61 |
|
|
62 |
|
uint Effect::InputControlCount() const { |
63 |
|
return vInputControls.size(); |
64 |
|
} |
65 |
|
|
66 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |