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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2123 by schoenebeck, Thu Apr 10 17:41:32 2008 UTC revision 2124 by schoenebeck, Sat Sep 18 09:24:41 2010 UTC
# Line 1  Line 1 
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  *
# Line 27  Effect::~Effect() { Line 27  Effect::~Effect() {
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 {
# Line 50  uint Effect::OutputChannelCount() const Line 54  uint Effect::OutputChannelCount() 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

Legend:
Removed from v.2123  
changed lines
  Added in v.2124

  ViewVC Help
Powered by ViewVC