Changes in examples/utils.c [6f10064:633fb32]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified examples/utils.c ¶
r6f10064 r633fb32 22 22 void save_data (void); 23 23 void restore_data(lash_config_t * lash_config); 24 void flush_process(aubio_process_func_t process_func, aubio_print_func_t print);25 24 pthread_t lash_thread; 26 25 #endif /* LASH_SUPPORT */ … … 34 33 int usejack = 0; 35 34 int usedoubled = 1; 36 int frames_delay = 0;37 35 38 36 … … 397 395 398 396 debug("Processed %d frames of %d samples.\n", frames, buffer_size); 399 400 flush_process(process_func, print);401 397 del_aubio_sndfile(file); 402 398 … … 407 403 } 408 404 409 void flush_process(aubio_process_func_t process_func, aubio_print_func_t print){410 uint i,j;411 for (i = 0; i < channels; i++) {412 for (j = 0; j < obuf->length; j++) {413 fvec_write_sample(obuf,0.,i,j);414 }415 }416 for (i = 0; (signed)i < frames_delay; i++) {417 process_func(ibuf->data, obuf->data, overlap_size);418 print();419 }420 }421 405 422 406
Note: See TracChangeset
for help on using the changeset viewer.