Mercurial > hg > vampy
diff PyTypeInterface.cpp @ 72:ffaa1fb3d7de vampyhost
inline is not a useful keyword with contemporary compilers
author | Chris Cannam |
---|---|
date | Mon, 24 Nov 2014 09:50:49 +0000 |
parents | 40a01bb24209 |
children |
line wrap: on
line diff
--- a/PyTypeInterface.cpp Thu Nov 20 13:02:50 2014 +0000 +++ b/PyTypeInterface.cpp Mon Nov 24 09:50:49 2014 +0000 @@ -230,7 +230,7 @@ /// passing the sample buffers as builtin python lists /// Optimization: using fast sequence protocol -inline PyObject* +PyObject* PyTypeInterface::InputBuffers_As_PythonLists(const float *const *inputBuffers,const size_t& channels, const size_t& blockSize, const Vamp::Plugin::InputDomain& dtype) { //create a list of lists (new references) @@ -289,7 +289,7 @@ /// numpy buffer interface: passing the sample buffers as shared memory buffers /// Optimization: using sequence protocol for creating the buffer list -inline PyObject* +PyObject* PyTypeInterface::InputBuffers_As_SharedMemoryList(const float *const *inputBuffers,const size_t& channels, const size_t& blockSize, const Vamp::Plugin::InputDomain& dtype) { //create a list of buffers (returns new references) @@ -320,7 +320,7 @@ /// numpy array interface: passing the sample buffers as 2D numpy array /// Optimization: using array API (needs numpy headers) #ifdef HAVE_NUMPY -inline PyObject* +PyObject* PyTypeInterface::InputBuffers_As_NumpyArray(const float *const *inputBuffers,const size_t& channels, const size_t& blockSize, const Vamp::Plugin::InputDomain& dtype) { /*