Replies: 2 comments 7 replies
-
Actually, after further reading, I have a suspicion that it can be done by subtracting the following from the current system time. I'm not sure how I can confirm that this is correct though. That would be currentSystemTimeInMicroseconds - (jack_get_time() - jack_frames_to_time((jack_last_frame_time(client))) If someone knows this and can confirm if this is correct that would be appreciated. Kim |
Beta Was this translation helpful? Give feedback.
0 replies
-
What do you mean by "system time"? You mean the time returned from
"gettimeofday", or do you mean the time returned by "jack_get_time()"?
(I don't know if it's possible to convert between those two, unless jack
uses gettimeof day underneath... (which I guess it might do))
…On Mon, Jun 12, 2023 at 12:44 PM Kim Hendrikse ***@***.***> wrote:
Actually, after further reading, I have a suspicion that it can be done by
subtracting the following from the current system time. I'm not sure how I
can confirm that this is correct though.
That would be
currentSystemTimeInMicroseconds - (jack_get_time() -
jack_frames_to_time((jack_last_frame_time(client)))
If someone knows this and can confirm if this is correct that would be
appreciated.
Kim
—
Reply to this email directly, view it on GitHub
<#938 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIX3J6LJFVDFDXPHZ2JJGTXK3XIRANCNFSM6AAAAAAZCJUQWM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm using jackd on a system using a gps and pps to keep very accurate time with a view towards localizing sounds received from different mics. When the mics are a long way away minor time differences won't matter but I would like to try and do it with mics just located at my place.
I'm finding myself getting somewhat confused with the time handling in jackd2 and chatgpt is also not getting it right.
How can I calculate the exact system time from the very first audio sample received in the processing callback? Currently I'm just using the system time before setting everything up but I suspect that there is some discrepancies that the jackd system knows about and can fix.
I think the answer will lie somewhere in the use of jack_last_frame_time(client) at the very first call back but I'm having trouble getting it right?
Cheers,
Kim Hendrikse
Beta Was this translation helpful? Give feedback.
All reactions