1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/* plugin~, a Pd tilde object for hosting LADSPA/VST plug-ins
Copyright (C) 2000 Jarno Seppänen
$Id: plugin~_vst.h,v 1.1 2002-11-19 09:51:40 ggeiger Exp $
This file is part of plugin~.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef __PLUGIN_TILDE_VST_H__
#define __PLUGIN_TILDE_VST_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "config.h"
#if PLUGIN_TILDE_USE_VST
#include "plugin~.h"
/* VST header */
#include "vst/AEffect.h"
#if 0 /* moved to plugin~.h because of cyclical header dependency */
typedef struct
{
AEffect* instance;
/* audio wire buffer information */
float** audio_inputs;
float** audio_outputs;
unsigned long num_samples;
int editor_open;
} Plugin_Tilde_Vst;
#endif /* moved to plugin~.h because of cyclical header dependency */
/* subroutines to wrap the VST interface */
const char* plugin_tilde_vst_search_plugin (Pd_Plugin_Tilde* x,
const char* name);
int plugin_tilde_vst_open_plugin (Pd_Plugin_Tilde* x,
const char* name,
const char* lib_name,
unsigned long sample_rate);
void plugin_tilde_vst_close_plugin (Pd_Plugin_Tilde* x);
void plugin_tilde_vst_apply_plugin (Pd_Plugin_Tilde* x);
void plugin_tilde_vst_print (Pd_Plugin_Tilde* x);
void plugin_tilde_vst_reset (Pd_Plugin_Tilde* x);
void plugin_tilde_vst_connect_audio (Pd_Plugin_Tilde* x,
float** audio_inputs,
float** audio_outputs,
unsigned long num_samples);
void plugin_tilde_vst_set_control_input_by_name (Pd_Plugin_Tilde* x,
const char* name,
float value);
void plugin_tilde_vst_set_control_input_by_index (Pd_Plugin_Tilde* x,
unsigned index_,
float value);
/* subroutines needed by the VST interface */
static long plugin_tilde_vst_audioMaster (AEffect* effect,
long opcode,
long index,
long value,
void* ptr,
float opt);
static void plugin_tilde_vst_open_editor (Pd_Plugin_Tilde* x);
static void plugin_tilde_vst_close_editor (Pd_Plugin_Tilde* x);
void plugin_tilde_vst_update_gui (Pd_Plugin_Tilde* x);
#endif /* PLUGIN_TILDE_USE_VST */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __PLUGIN_TILDE_VST_H__ */
/* EOF */
|