/[svn]/linuxsampler/trunk/src/effects/Effect.cpp
ViewVC logotype

Annotation of /linuxsampler/trunk/src/effects/Effect.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2124 - (hide annotations) (download)
Sat Sep 18 09:24:41 2010 UTC (13 years, 7 months ago) by schoenebeck
File size: 2724 byte(s)
* implemented support for internal LADSPA effects (work in progress)

1 schoenebeck 1722 /***************************************************************************
2     * *
3 schoenebeck 2124 * Copyright (C) 2008, 2010 Christian Schoenebeck *
4 schoenebeck 1722 * *
5     * 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 *
7     * the Free Software Foundation; either version 2 of the License, or *
8     * (at your option) any later version. *
9     * *
10     * This program is distributed in the hope that it will be useful, *
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13     * GNU General Public License for more details. *
14     * *
15     * You should have received a copy of the GNU General Public License *
16     * along with this program; if not, write to the Free Software *
17     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
18     * MA 02111-1307 USA *
19     ***************************************************************************/
20    
21     #include "Effect.h"
22    
23     namespace LinuxSampler {
24    
25     Effect::~Effect() {
26     for (int i = 0; i < vInputChannels.size(); ++i)
27     delete vInputChannels[i];
28     for (int i = 0; i < vOutputChannels.size(); ++i)
29     delete vOutputChannels[i];
30 schoenebeck 2124 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 schoenebeck 1722 }
35    
36 schoenebeck 2124 void Effect::InitEffect(AudioOutputDevice* pDevice) throw (Exception) {
37 schoenebeck 1722 }
38    
39     AudioChannel* Effect::InputChannel(uint ChannelIndex) const {
40     if (ChannelIndex >= vInputChannels.size()) return NULL;
41     return vInputChannels[ChannelIndex];
42     }
43    
44     uint Effect::InputChannelCount() const {
45     return vInputChannels.size();
46     }
47    
48     AudioChannel* Effect::OutputChannel(uint ChannelIndex) const {
49     if (ChannelIndex >= vOutputChannels.size()) return NULL;
50     return vOutputChannels[ChannelIndex];
51     }
52    
53     uint Effect::OutputChannelCount() const {
54     return vOutputChannels.size();
55     }
56    
57 schoenebeck 2124 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 schoenebeck 1722 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC