Mercurial > hg > vampy
comparison PyRealTime.h @ 37:27bab3a16c9a vampy2final
new branch Vampy2final
author | fazekasgy |
---|---|
date | Mon, 05 Oct 2009 11:28:00 +0000 |
parents | |
children | 2a9fb03458d7 f5c028376bf9 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 37:27bab3a16c9a |
---|---|
1 /* | |
2 | |
3 * Vampy : This plugin is a wrapper around the Vamp plugin API. | |
4 * It allows for writing Vamp plugins in Python. | |
5 | |
6 * Centre for Digital Music, Queen Mary University of London. | |
7 * Copyright (C) 2008-2009 Gyorgy Fazekas, QMUL. (See Vamp sources | |
8 * for licence information.) | |
9 | |
10 */ | |
11 | |
12 #ifndef _PYREALTIME_H_ | |
13 #define _PYREALTIME_H_ | |
14 | |
15 #include "vamp-sdk/Plugin.h" | |
16 | |
17 typedef struct { | |
18 PyObject_HEAD | |
19 Vamp::RealTime *rt; | |
20 } RealTimeObject; | |
21 | |
22 PyAPI_DATA(PyTypeObject) RealTime_Type; | |
23 | |
24 #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type) | |
25 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) | |
26 ///fast macro version as per API convention | |
27 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt | |
28 | |
29 /* PyRealTime C++ API */ | |
30 | |
31 | |
32 PyAPI_FUNC(PyObject *) | |
33 PyRealTime_FromRealTime(Vamp::RealTime&); | |
34 | |
35 PyAPI_FUNC(const Vamp::RealTime*) | |
36 PyRealTime_AsRealTime (PyObject *self); | |
37 | |
38 | |
39 #endif |