Mercurial > hg > vampy
diff PyPlugin.cpp @ 32:a8231788216c vampy2
Vampy2: accept numpy array return types.
author | fazekasgy |
---|---|
date | Mon, 21 Sep 2009 13:56:28 +0000 |
parents | 4f1894c7591b |
children |
line wrap: on
line diff
--- a/PyPlugin.cpp Sun Sep 20 17:31:20 2009 +0000 +++ b/PyPlugin.cpp Mon Sep 21 13:56:28 2009 +0000 @@ -364,8 +364,8 @@ PyObject *pyChannelList = PyList_New((Py_ssize_t) m_channels); for (size_t i=0; i < m_channels; ++i) { //Expose memory using the Buffer Interface of C/API - //This will virtually pass a pointer which can be - //recasted in Python code as float or complex array + //This will pass a pointer which can be recasted + //in Python code as float or complex array PyObject *pyBuffer = PyBuffer_FromMemory ((void *) (float *) inputBuffers[i], (Py_ssize_t) sizeof(float) * m_blockSize);