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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1722 - (show annotations) (download)
Thu Apr 10 17:41:32 2008 UTC (16 years ago) by schoenebeck
File size: 2287 byte(s)
* minor preparations for internal effects support
* bumped version to 0.5.1.5cvs

1 /***************************************************************************
2 * *
3 * Copyright (C) 2008 Christian Schoenebeck *
4 * *
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 }
31
32 void Effect::InitEffect(AudioOutputDevice* pDevice) {
33 }
34
35 AudioChannel* Effect::InputChannel(uint ChannelIndex) const {
36 if (ChannelIndex >= vInputChannels.size()) return NULL;
37 return vInputChannels[ChannelIndex];
38 }
39
40 uint Effect::InputChannelCount() const {
41 return vInputChannels.size();
42 }
43
44 AudioChannel* Effect::OutputChannel(uint ChannelIndex) const {
45 if (ChannelIndex >= vOutputChannels.size()) return NULL;
46 return vOutputChannels[ChannelIndex];
47 }
48
49 uint Effect::OutputChannelCount() const {
50 return vOutputChannels.size();
51 }
52
53 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC