Changeset 5652a8c for python/ext/py-sink.c
- Timestamp:
- Apr 19, 2016, 2:16:39 AM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 26eb6d0
- Parents:
- f50dea4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-sink.c
rf50dea4 r5652a8c 1 #include "aubio wraphell.h"1 #include "aubio-types.h" 2 2 3 3 typedef struct … … 125 125 } 126 126 127 AUBIO_DEL(sink) 127 static void 128 Py_sink_del (Py_sink *self, PyObject *unused) 129 { 130 del_aubio_sink(self->o); 131 Py_TYPE(self)->tp_free((PyObject *) self); 132 } 128 133 129 134 /* function Py_sink_do */ … … 194 199 } 195 200 196 AUBIO_MEMBERS_START(sink) 201 static PyMemberDef Py_sink_members[] = { 197 202 {"uri", T_STRING, offsetof (Py_sink, uri), READONLY, 198 203 "path at which the sink was created"}, … … 201 206 {"channels", T_INT, offsetof (Py_sink, channels), READONLY, 202 207 "number of channels with which the sink was created"}, 203 AUBIO_MEMBERS_STOP(sink) 208 { NULL } // sentinel 209 }; 204 210 205 211 static PyObject * … … 217 223 }; 218 224 219 AUBIO_TYPEOBJECT(sink, "aubio.sink") 225 PyTypeObject Py_sinkType = { 226 PyVarObject_HEAD_INIT (NULL, 0) 227 "aubio.sink", 228 sizeof (Py_sink), 229 0, 230 (destructor) Py_sink_del, 231 0, 232 0, 233 0, 234 0, 235 0, 236 0, 237 0, 238 0, 239 0, 240 (ternaryfunc)Py_sink_do, 241 0, 242 0, 243 0, 244 0, 245 Py_TPFLAGS_DEFAULT, 246 Py_sink_doc, 247 0, 248 0, 249 0, 250 0, 251 0, 252 0, 253 Py_sink_methods, 254 Py_sink_members, 255 0, 256 0, 257 0, 258 0, 259 0, 260 0, 261 (initproc) Py_sink_init, 262 0, 263 Py_sink_new, 264 };
Note: See TracChangeset
for help on using the changeset viewer.