Mercurial > hg > vampy-host
comparison native/PyPluginObject.h @ 52:b56513f872a5
Move files into subdirs
author | Chris Cannam |
---|---|
date | Wed, 14 Jan 2015 08:30:47 +0000 |
parents | PyPluginObject.h@13dcfe8c7ed7 |
children | 2370b942cd32 |
comparison
equal
deleted
inserted
replaced
51:a78b14c41c74 | 52:b56513f872a5 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 VampyHost | |
5 | |
6 Use Vamp audio analysis plugins in Python | |
7 | |
8 Gyorgy Fazekas and Chris Cannam | |
9 Centre for Digital Music, Queen Mary, University of London | |
10 Copyright 2008-2014 Queen Mary, University of London | |
11 | |
12 Permission is hereby granted, free of charge, to any person | |
13 obtaining a copy of this software and associated documentation | |
14 files (the "Software"), to deal in the Software without | |
15 restriction, including without limitation the rights to use, copy, | |
16 modify, merge, publish, distribute, sublicense, and/or sell copies | |
17 of the Software, and to permit persons to whom the Software is | |
18 furnished to do so, subject to the following conditions: | |
19 | |
20 The above copyright notice and this permission notice shall be | |
21 included in all copies or substantial portions of the Software. | |
22 | |
23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
24 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
25 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
26 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR | |
27 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
28 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
29 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
30 | |
31 Except as contained in this notice, the names of the Centre for | |
32 Digital Music; Queen Mary, University of London; and the authors | |
33 shall not be used in advertising or otherwise to promote the sale, | |
34 use or other dealings in this Software without prior written | |
35 authorization. | |
36 */ | |
37 | |
38 #ifndef PYPLUGINOBJECT_H | |
39 #define PYPLUGINOBJECT_H | |
40 | |
41 #include <Python.h> | |
42 #include <vamp-hostsdk/Plugin.h> | |
43 | |
44 #include <string> | |
45 | |
46 struct PyPluginObject | |
47 { | |
48 PyObject_HEAD | |
49 Vamp::Plugin *plugin; | |
50 bool isInitialised; | |
51 size_t channels; | |
52 size_t blockSize; | |
53 size_t stepSize; | |
54 PyObject *info; | |
55 int inputDomain; | |
56 PyObject *parameters; | |
57 PyObject *programs; | |
58 }; | |
59 | |
60 PyAPI_DATA(PyTypeObject) Plugin_Type; | |
61 #define PyPlugin_Check(v) PyObject_TypeCheck(v, &Plugin_Type) | |
62 | |
63 PyAPI_FUNC(PyObject *) | |
64 PyPluginObject_From_Plugin(Vamp::Plugin *); | |
65 | |
66 #endif | |
67 | |
68 |