- Timestamp:
- Mar 8, 2013, 3:52:01 AM (12 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:
- 1ee4033
- Parents:
- 90a8f2f
- Location:
- python
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/aubiomodule.c
r90a8f2f r9e6695d 165 165 166 166 // since this function does not return, we could return None 167 // return Py_None;167 //Py_RETURN_NONE; 168 168 // however it is convenient to return the modified vector 169 169 return (PyObject *) PyAubio_CFvecToArray(vec); -
python/ext/py-filter.c
r90a8f2f r9e6695d 100 100 return NULL; 101 101 } 102 return Py_None;102 Py_RETURN_NONE; 103 103 } 104 104 … … 118 118 return NULL; 119 119 } 120 return Py_None;120 Py_RETURN_NONE; 121 121 } 122 122 … … 136 136 return NULL; 137 137 } 138 return Py_None;138 Py_RETURN_NONE; 139 139 } 140 140 -
python/ext/py-filterbank.c
r90a8f2f r9e6695d 110 110 return NULL; 111 111 } 112 return Py_None;112 Py_RETURN_NONE; 113 113 } 114 114 … … 129 129 return NULL; 130 130 } 131 return Py_None;131 Py_RETURN_NONE; 132 132 } 133 133 … … 159 159 return NULL; 160 160 } 161 return Py_None;161 Py_RETURN_NONE; 162 162 } 163 163 -
python/gen_pyobject.py
r90a8f2f r9e6695d 343 343 returnval += " return (PyObject *)" + aubiovectopyobj[p['type']] + " (" + p['name'] + ")" 344 344 else: 345 returnval = " return Py_None;";345 returnval += " Py_RETURN_NONE" 346 346 # end of output strings 347 347 return outputvecs, outputcreate, returnval … … 474 474 return NULL; 475 475 } 476 return Py_None;476 Py_RETURN_NONE; 477 477 } 478 478 """ % {'funcname': method_name, 'objname': name, -
python/tests/test_sink.py
r90a8f2f r9e6695d 13 13 def setUp(self): 14 14 if not len(list_of_sounds): self.skipTest('add some sound files in \'python/tests/sounds\'') 15 16 def test_many_sinks(self): 17 for i in range(100): 18 g = sink('/tmp/f.wav', 0) 19 write = 256 20 for n in range(200): 21 vec = fvec(write) 22 g(vec, write) 23 del g 15 24 16 25 def test_read(self): … … 31 40 print "from", f.uri, 32 41 print "to", g.uri 42 #del f, g 33 43 34 44 if __name__ == '__main__': 35 from unittest import main 36 main() 37 45 from unittest import main 46 main()
Note: See TracChangeset
for help on using the changeset viewer.