-
Notifications
You must be signed in to change notification settings - Fork 3
/
PyRealTime.h
39 lines (25 loc) · 908 Bytes
/
PyRealTime.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Vampy : This plugin is a wrapper around the Vamp plugin API.
* It allows for writing Vamp plugins in Python.
* Centre for Digital Music, Queen Mary University of London.
* Copyright (C) 2008-2009 Gyorgy Fazekas, QMUL. (See Vamp sources
* for licence information.)
*/
#ifndef _PYREALTIME_H_
#define _PYREALTIME_H_
#include "vamp-sdk/Plugin.h"
typedef struct {
PyObject_HEAD
Vamp::RealTime *rt;
} RealTimeObject;
extern PyTypeObject RealTime_Type;
#define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type)
#define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type)
///fast macro version as per API convention
#define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt
/* PyRealTime C++ API */
extern PyObject *
PyRealTime_FromRealTime(Vamp::RealTime&);
extern const Vamp::RealTime*
PyRealTime_AsRealTime (PyObject *self);
#endif