Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -48,7 +48,7 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end=None, · 47 unmodified lines | |||
| 48 | # get hopsize new samples from source | 48 | # get hopsize new samples from source |
| 49 | vec, read = _source.do_multi() | 49 | vec, read = _source.do_multi() |
| 50 | # if the total number of frames read will exceed the next region start | 50 | # if the total number of frames read will exceed the next region start |
| 51 | if len(regions) and total_frames + read >= regions[0][0]: | 51 | while len(regions) and total_frames + read >= regions[0][0]: |
| 52 | #print "getting", regions[0], "at", total_frames | 52 | #print "getting", regions[0], "at", total_frames |
| 53 | # get next region | 53 | # get next region |
| 54 | start_stamp, end_stamp = regions.pop(0) | 54 | start_stamp, end_stamp = regions.pop(0) |