kmatheussen / jack_capture

A program for recording soundfiles with jack
http://www.notam02.no/arkiv/src/
Other
75 stars 28 forks source link

Timestamp is wrong / useless when using timemachine #55

Closed riban-bw closed 6 months ago

riban-bw commented 6 months ago

There is an option "--timestamp" to create a file when a recording begins that stores information about the time the recording starts. When combined with --timemachine, this option is of little use. The timestamp file is created when the recording is requested to start but has the original start time of the process or timestamp of the last stop. There is no indication of the start of recording, including or excluding pre-record buffer.

It would be advantageous to store the time the recording was requested to start and further advantageous to store the actual start time including pre-record buffer, e.g.

1710321979.298543928
# port-latency: 0 frames
# sample-rate : 44100.000000 samples/sec
# system-time : 2024-03-13 09:26:19.298543928 UTC
# pre-record-time: 2024-03-13 09:16:19.298543928 UTC

jack_capture version 0.9.73 on Debian 12 (Bookworm) on aarch64 (Raspberry Pi 4).

riban-bw commented 6 months ago

Hmmm! I seem to have had some bad results with my initial testing. Subsequent tests show that the timestamp is actually for the correct time. :blush: