Mercurial > hg > vampy-host
comparison native/PyRealTime.h @ 52:b56513f872a5
Move files into subdirs
author | Chris Cannam |
---|---|
date | Wed, 14 Jan 2015 08:30:47 +0000 |
parents | PyRealTime.h@014c48d6f360 |
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 PYREALTIME_H | |
39 #define PYREALTIME_H | |
40 | |
41 #include <Python.h> | |
42 #include <vamp-hostsdk/RealTime.h> | |
43 | |
44 typedef struct { | |
45 PyObject_HEAD | |
46 Vamp::RealTime *rt; | |
47 } RealTimeObject; | |
48 | |
49 PyAPI_DATA(PyTypeObject) RealTime_Type; | |
50 | |
51 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) | |
52 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt | |
53 | |
54 PyAPI_FUNC(PyObject *) | |
55 PyRealTime_FromRealTime(const Vamp::RealTime&); | |
56 | |
57 PyAPI_FUNC(const Vamp::RealTime*) | |
58 PyRealTime_AsRealTime (PyObject *self); | |
59 | |
60 #endif |