Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/ladspa/ladspacontrol.h

Go to the documentation of this file.
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 LADSPACONTROL_H
00011 #define LADSPACONTROL_H
00012 
00013 // won't be used unless LADSPAControl is instantiated before a call to setBufferSize
00014 #define LADSPA_MAX_BUFFER_SIZE 8192
00015 
00016 #include <ladspa.h>
00017 
00018 class LADSPAControl
00019 {
00020 public:
00021     LADSPAControl();
00022     ~LADSPAControl();
00023 
00024     LADSPA_Data * getBuffer();
00025     void setValue(LADSPA_Data value);
00026     static void setBufferSize(int size);
00027     
00028 private:
00029     LADSPA_Data m_Value;
00030     LADSPA_Data * m_pBuffer;
00031     static int m_bufferSize;
00032 };
00033 
00034 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines