Changes in / [dec8b9d:d1b78dc]
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
azure-pipelines.yml
rdec8b9d rd1b78dc 1 1 # configuration file for azure continuous integration 2 2 jobs: 3 3 4 - job: linux 4 5 pool: 5 6 vmImage: 'Ubuntu 16.04' 6 7 7 steps: 8 8 - script: | 9 9 make 10 10 displayName: 'make' 11 env: 12 CFLAGS: -Werror 13 11 14 - job: windows 12 15 pool: 13 16 vmIMage: 'VS2017-Win2016' 14 15 17 steps: 16 18 - script: | … … 24 26 pool: 25 27 vmIMage: macOS-10.13 26 27 28 steps: 28 29 - script: | … … 34 35 make 35 36 displayName: 'make' 37 env: 38 CFLAGS: -Werror -
python/ext/py-filterbank.c
rdec8b9d rd1b78dc 95 95 if (self->vec.length != self->win_s / 2 + 1) { 96 96 PyErr_Format(PyExc_ValueError, 97 "input cvec has length %d, but f ftexpects length %d",97 "input cvec has length %d, but filterbank expects length %d", 98 98 self->vec.length, self->win_s / 2 + 1); 99 99 return NULL; … … 140 140 if (err > 0) { 141 141 PyErr_SetString (PyExc_ValueError, 142 "error when setting filter to A-weighting");142 "error when running set_triangle_bands"); 143 143 return NULL; 144 144 } … … 159 159 if (err > 0) { 160 160 PyErr_SetString (PyExc_ValueError, 161 "error when setting filter to A-weighting");161 "error when running set_mel_coeffs_slaney"); 162 162 return NULL; 163 163 } -
python/lib/aubio/cmd.py
rdec8b9d rd1b78dc 500 500 def main(): 501 501 parser = aubio_parser() 502 args = parser.parse_args() 502 if sys.version_info[0] != 3: 503 # on py2, create a dummy ArgumentParser to workaround the 504 # optional subcommand issue. See https://bugs.python.org/issue9253 505 # This ensures that: 506 # - version string is shown when only '-V' is passed 507 # - help is printed if '-V' is passed with any other argument 508 # - any other argument get forwarded to the real parser 509 parser_root = argparse.ArgumentParser(add_help=False) 510 parser_root.add_argument('-V', '--version', help="show version", 511 action="store_true", dest="show_version") 512 args, extras = parser_root.parse_known_args() 513 if args.show_version == False: # no -V, forward to parser 514 args = parser.parse_args(extras, namespace=args) 515 elif len(extras) != 0: # -V with other arguments, print help 516 parser.print_help() 517 sys.exit(1) 518 else: # in py3, we can simply use parser directly 519 args = parser.parse_args() 503 520 if 'show_version' in args and args.show_version: 504 521 sys.stdout.write('aubio version ' + aubio.version + '\n') -
python/tests/test_aubio_cmd.py
rdec8b9d rd1b78dc 20 20 21 21 def test_samples2seconds(self): 22 self.assertEqual(aubio.cmd.samples2seconds(3200, 32000), "0.100000\t") 22 self.assertEqual(aubio.cmd.samples2seconds(3200, 32000), 23 "0.100000\t") 23 24 24 25 def test_samples2milliseconds(self): 25 self.assertEqual(aubio.cmd.samples2milliseconds(3200, 32000), "100.000000\t") 26 self.assertEqual(aubio.cmd.samples2milliseconds(3200, 32000), 27 "100.000000\t") 26 28 27 29 def test_samples2samples(self): 28 self.assertEqual(aubio.cmd.samples2samples(3200, 32000), "3200\t") 30 self.assertEqual(aubio.cmd.samples2samples(3200, 32000), 31 "3200\t") 29 32 30 33 if __name__ == '__main__': -
src/io/source_avcodec.c
rdec8b9d rd1b78dc 435 435 goto beach; 436 436 } 437 #else 438 #warning "avutil < 53 is deprecated, crashes might occur on corrupt files" 437 439 #endif 438 440 -
src/spectral/phasevoc.c
rdec8b9d rd1b78dc 213 213 synthold[i] += synth[i + pv->hop_s] * pv->scale; 214 214 } 215 216 uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv) 217 { 218 return pv->win_s; 219 } 220 221 uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv) 222 { 223 return pv->hop_s; 224 } -
src/spectral/phasevoc.h
rdec8b9d rd1b78dc 89 89 */ 90 90 uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv); 91 91 92 /** get hop size 92 93
Note: See TracChangeset
for help on using the changeset viewer.