![]() |
Mixxx
|
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 00010 #ifndef LADSPAPRESETINSTANCE_H 00011 #define LADSPAPRESETINSTANCE_H 00012 00013 #include "ladspaplugin.h" 00014 #include "ladspainstance.h" 00015 #include "engine/engineladspa.h" 00016 00017 class ControlPotmeter; 00018 class LADSPAPresetKnob; 00019 00020 typedef QVector<ConfigKey *> ConfigKeyVector; 00021 00022 class LADSPAPresetInstance 00023 { 00024 public: 00025 LADSPAPresetInstance(int pluginCount, int controlCount, int slot); 00026 ~LADSPAPresetInstance(); 00027 00028 void addPlugin(int i, LADSPAPlugin * plugin, EngineLADSPA * engine); 00029 void addControl(int i, LADSPAPresetKnob * knob, EngineLADSPA * engine); 00030 int getKnobCount(); 00031 ConfigKey getKey(int i); 00032 00033 private: 00034 int m_iInstanceID; 00035 static int m_iNextInstanceID; 00036 LADSPAInstanceVector m_Instances; 00037 EngineLADSPAControlConnectionVector m_Connections; 00038 ConfigKeyVector m_Keys; 00039 int m_iSlotNumber; 00040 }; 00041 00042 #endif