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