2
* Copyright (C) 2003 Steve Harris
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* $Id: plugin.h,v 1.2 2003/11/19 15:28:17 theno23 Exp $
24
LADSPA_Descriptor *descriptor;
29
plugin *plugin_load(char *file);
31
LADSPA_Handle plugin_instantiate(plugin *p, unsigned long fs);
33
static inline void plugin_connect_port(plugin *p, LADSPA_Handle h, unsigned
34
long port, LADSPA_Data *data);
36
static inline void plugin_run(plugin *p, LADSPA_Handle *h, unsigned long
39
static inline void plugin_connect_port(plugin *p, LADSPA_Handle h, unsigned
40
long port, LADSPA_Data *data)
42
(*p->descriptor->connect_port)(h, port, data);
45
static inline void plugin_run(plugin *p, LADSPA_Handle *h, unsigned long
48
(*p->descriptor->run)(h, sample_count);