| 1 | /* Copyright 2013 Kjetil S. Matheussen |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or |
| 4 | modify it under the terms of the GNU General Public License |
| 5 | as published by the Free Software Foundation; either version 2 |
| 6 | of the License, or (at your option) any later version. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program; if not, write to the Free Software |
| 15 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
| 16 | |
| 17 | enum{ |
| 18 | COMP_EFF_RATIO=0, |
| 19 | COMP_EFF_THRESHOLD, |
| 20 | COMP_EFF_ATTACK, |
| 21 | COMP_EFF_RELEASE, |
| 22 | //INPUT_VOLUME, |
| 23 | COMP_EFF_OUTPUT_VOLUME, |
| 24 | COMP_EFF_BYPASS // only used by the standalone version of the compressor. |
| 25 | }; |
| 26 | |
| 27 | |
| 28 | extern LANGSPEC void *COMPRESSOR_create(float sample_rate); |
| 29 | |
| 30 | extern LANGSPEC void COMPRESSOR_delete(void *das_wrapper); |
| 31 | |
| 32 | extern LANGSPEC float COMPRESSOR_get_parameter(void *das_wrapper,int num); |
| 33 | |
| 34 | extern LANGSPEC void COMPRESSOR_set_parameter(void *das_wrapper,int num,float value); |
| 35 | |
| 36 | extern LANGSPEC float COMPRESSOR_get_graph_value(void *das_wrapper, int num); |
| 37 | |
| 38 | extern LANGSPEC void COMPRESSOR_process(void *das_wrapper, float **inputs, float **outputs, int num_frames); |
| 39 | |
| 40 | extern LANGSPEC void *COMPRESSOR_create_ladspa(const char *key); |
| 41 | extern LANGSPEC float COMPRESSOR_get_ladspa_parameter(void *Instance,int num); |
| 42 | extern LANGSPEC void COMPRESSOR_set_ladspa_parameter(void *Instance,int num,float value); |
| 43 | extern LANGSPEC float COMPRESSOR_get_ladspa_graph_value(void *Instance, int num); |
| 44 | extern LANGSPEC void COMPRESSOR_delete_ladspa(void *Instance); |
| 45 |