diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-25 04:54:17 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-25 04:54:17 +0000 |
commit | 7b21867fc1b9af84cd0f097b71f3bf456c9b5afd (patch) | |
tree | c6478da14d029687caf706bdd558d5a357183919 /externals/grill/py/source/pydsp.cpp | |
parent | 83c049b6c7eb05aabbfc008f46541c9d83b2be01 (diff) |
fixes for maxmsp
added generic numpy support (not working)
svn path=/trunk/; revision=2645
Diffstat (limited to 'externals/grill/py/source/pydsp.cpp')
-rw-r--r-- | externals/grill/py/source/pydsp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/py/source/pydsp.cpp b/externals/grill/py/source/pydsp.cpp index 4c9eea5c..28d7d49b 100644 --- a/externals/grill/py/source/pydsp.cpp +++ b/externals/grill/py/source/pydsp.cpp @@ -63,7 +63,7 @@ void pydsp::DoExit() FreeBuffers();
}
-PyObject *NAFromBuffer(PyObject *buf,int c,int n);
+PyObject *arrayfrombuffer(PyObject *buf,int c,int n);
void pydsp::NewBuffers()
{
@@ -82,7 +82,7 @@ void pydsp::NewBuffers() for(i = 0; i < ins; ++i) {
Py_XDECREF(buffers[i]);
PyObject *b = PyBuffer_FromReadWriteMemory(insigs[i],n*sizeof(t_sample));
- buffers[i] = NAFromBuffer(b,1,n);
+ buffers[i] = arrayfrombuffer(b,1,n);
Py_DECREF(b);
}
for(i = 0; i < outs; ++i) {
@@ -94,7 +94,7 @@ void pydsp::NewBuffers() }
else {
PyObject *b = PyBuffer_FromReadWriteMemory(outsigs[i],n*sizeof(t_sample));
- buffers[ins+i] = NAFromBuffer(b,1,n);
+ buffers[ins+i] = arrayfrombuffer(b,1,n);
Py_DECREF(b);
}
}
|