annotate native/PyRealTime.h @ 151:5a6b8f4be9b9 tracks tip

Docs
author Chris Cannam
date Fri, 21 Apr 2017 14:33:57 +0100
parents c45f957ef4d9
children
rev   line source
Chris@26 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@26 2
Chris@26 3 /*
Chris@26 4 VampyHost
Chris@26 5
Chris@26 6 Use Vamp audio analysis plugins in Python
Chris@26 7
Chris@26 8 Gyorgy Fazekas and Chris Cannam
Chris@26 9 Centre for Digital Music, Queen Mary, University of London
Chris@117 10 Copyright 2008-2015 Queen Mary, University of London
Chris@26 11
Chris@26 12 Permission is hereby granted, free of charge, to any person
Chris@26 13 obtaining a copy of this software and associated documentation
Chris@26 14 files (the "Software"), to deal in the Software without
Chris@26 15 restriction, including without limitation the rights to use, copy,
Chris@26 16 modify, merge, publish, distribute, sublicense, and/or sell copies
Chris@26 17 of the Software, and to permit persons to whom the Software is
Chris@26 18 furnished to do so, subject to the following conditions:
Chris@26 19
Chris@26 20 The above copyright notice and this permission notice shall be
Chris@26 21 included in all copies or substantial portions of the Software.
Chris@26 22
Chris@26 23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@26 24 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@26 25 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Chris@26 26 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
Chris@26 27 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@26 28 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@26 29 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@26 30
Chris@26 31 Except as contained in this notice, the names of the Centre for
Chris@26 32 Digital Music; Queen Mary, University of London; and the authors
Chris@26 33 shall not be used in advertising or otherwise to promote the sale,
Chris@26 34 use or other dealings in this Software without prior written
Chris@26 35 authorization.
Chris@26 36 */
Chris@26 37
Chris@26 38 #ifndef PYREALTIME_H
Chris@26 39 #define PYREALTIME_H
Chris@26 40
Chris@26 41 #include <Python.h>
Chris@26 42 #include <vamp-hostsdk/RealTime.h>
Chris@26 43
Chris@26 44 typedef struct {
Chris@26 45 PyObject_HEAD
Chris@26 46 Vamp::RealTime *rt;
Chris@26 47 } RealTimeObject;
Chris@26 48
Chris@121 49 extern PyTypeObject RealTime_Type;
Chris@26 50
Chris@26 51 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type)
Chris@26 52 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt
Chris@26 53
Chris@121 54 extern PyObject *
Chris@26 55 PyRealTime_FromRealTime(const Vamp::RealTime&);
Chris@26 56
Chris@121 57 extern const Vamp::RealTime *
Chris@26 58 PyRealTime_AsRealTime (PyObject *self);
Chris@26 59
Chris@26 60 #endif