Re: [Jack-Devel] jack_get_Time() used CLOCK

PrevNext  Index
DateWed, 27 Feb 2013 11:02:46 +0100
From Christoph Pregla <[hidden] at uni-jena dot de>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToClemens Ladisch Re: [Jack-Devel] jack_get_Time() used CLOCK
Follow-UpClemens Ladisch Re: [Jack-Devel] jack_get_Time() used CLOCK
Am 23.02.2013 12:18, schrieb Clemens Ladisch:
> Christoph Pregla wrote:
>> Instead of CLOCK_MONOTONIC I want CLOCK_REALTIME to be used for the
>> method jack_get_time().
> Why do you want to do that?
 I would like to use Jack in connection with PTP. PTP synchronises the
system clock, however, not the MONOTONIC Clock.
> What advantage do you think this gives you?

 I would like to spend sound in different computers synchronically. I am
of use PTP for the synchronisation of the computers clocks. The output
of the sound is realised by a presentation time (like AVB). I need Jack
as an interface between network datagrams and sound (input/output).
>
> Jack *needs* a monotonic clock.
>
>> How can I implement this?
> Step 1: Replace CLOCK_MONOTONIC with CLOCK_REALTIME in the Jack source
>         code.
> Step 2: Completely redesign Jack's time handling to prevent it from
>         blowing up when NTP runs, when the user changes the system time,
>         when a summer/winter time transition happens, when the system is
>         moved to another time zone, or when the system time is changed
>         for any other reason.
ok.
The time is adjusted continuously by PTP. Major changes take place,
however not. The computers remain in the same time zone.

Regards,
Christoph
PrevNext  Index

1361959377.12790_0.ltw:2, <512DD9C6.3050907 at uni-jena dot de>