![]() |
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 LADSPAINSTANCEMONO_H 00011 #define LADSPAINSTANCEMONO_H 00012 00013 #include <QtCore> 00014 #include <ladspa.h> 00015 00016 #include "defs.h" 00017 #include "controlobject.h" 00018 #include "ladspainstance.h" 00019 00020 class LADSPAInstanceMono : public LADSPAInstance 00021 { 00022 public: 00023 LADSPAInstanceMono(const LADSPA_Descriptor * descriptor, int slot); 00024 ~LADSPAInstanceMono(); 00025 00026 void process(const CSAMPLE * pInLeft, const CSAMPLE * pInRight, const CSAMPLE * pOutLeft, const CSAMPLE * pOutRight, const int iBufferSize); 00027 void connect(unsigned long port, LADSPA_Data * buffer); 00028 00029 private: 00030 LADSPA_Handle m_HandleLeft; 00031 LADSPA_Handle m_HandleRight; 00032 unsigned long m_InputPort; 00033 unsigned long m_OutputPort; 00034 }; 00035 00036 #endif