hide on cleanup
[lv2fil.git] / lv2filter.h
blob7ae26e23b2ddef9d4710d7ff0777766e146c492a
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * Copyright (C) 2006,2007,2008,2009 Nedko Arnaudov <nedko@arnaudov.name>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *****************************************************************************/
21 #ifndef LV2FILTER_H__6EC1E456_7DD7_4536_B8D3_F23BE4583A23__INCLUDED
22 #define LV2FILTER_H__6EC1E456_7DD7_4536_B8D3_F23BE4583A23__INCLUDED
24 #define LV2FILTER_MONO_URI "http://nedko.aranaudov.org/soft/filter/2/mono"
25 #define LV2FILTER_STEREO_URI "http://nedko.aranaudov.org/soft/filter/2/stereo"
27 LV2_Handle
28 lv2filter_instantiate(
29 const LV2_Descriptor * descriptor,
30 double sample_rate,
31 const char * bundle_path,
32 const LV2_Feature * const * features);
34 void
35 lv2filter_connect_port(
36 LV2_Handle instance,
37 uint32_t port,
38 void * data_location);
40 void
41 lv2filter_run(
42 LV2_Handle instance,
43 uint32_t samples_count);
45 void
46 lv2filter_cleanup(
47 LV2_Handle instance);
49 const void *
50 lv2filter_extension_data(
51 const char * URI);
53 #endif /* #ifndef LV2FILTER_H__6EC1E456_7DD7_4536_B8D3_F23BE4583A23__INCLUDED */