Partially done:
- events_per_file, including starting number
Implemented for the eio_ascii set of formats. The global variables are sample_split_n_evt
and {{sample_split_index}}}. Not yet implemented for other formats, but this should be straightforward. the relevant TBP is called eio_split_out
.
Also done:
- signal handling: save/restore vamp grid CONTENTS
Signals are blocked by default. At important points in code, the signal status is queried by signal_is_pending
and, if necessary, the current routine returns. This works like a poor-man's exception mechanism. The actual termination points are after each SINDARIN command. (In the cascades module, I kept termination points as they were before.)
This way of treating signals allows to do some cleanup, such as properly closing event files, before the program aborts. In the previous implementation, there was only the possibility of immediate abort at various points.
The issue of snapshooting VAMP is nontrivial. I deferred this to #572.
There are no tests for signal handling; this is difficult. Practice should show whether I missed something.