From nobody Fri Feb 10 12:59:30 2023 X-Original-To: multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PCv2b0P2mz3n3Xj for ; Fri, 10 Feb 2023 12:59:35 +0000 (UTC) (envelope-from dev@submerge.ch) Received: from gozo.iway.ch (gozo.iway.ch [212.25.24.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PCv2Y2nTdz44dj for ; Fri, 10 Feb 2023 12:59:33 +0000 (UTC) (envelope-from dev@submerge.ch) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of dev@submerge.ch designates 212.25.24.36 as permitted sender) smtp.mailfrom=dev@submerge.ch; dmarc=none Received: from gozo.iway.ch (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id BA2C03410A8 for ; Fri, 10 Feb 2023 13:59:30 +0100 (CET) X-Iway-Path: 0 Received: from localhost (localhost [127.0.0.1]) by localhost (ACF/31111.5599); Fri, 10 Feb 2023 13:59:30 +0100 (CET) Received: from interway.li (sendai-nord.iway.ch [212.25.24.38]) by gozo.iway.ch (Postfix) with ESMTP for ; Fri, 10 Feb 2023 13:59:30 +0100 (CET) Received: from [145.40.196.39] (account fw@submerge.ch HELO z800.localnet) by sendai-nord.interway.li (CommuniGate Pro SMTP 7.1.0) with ESMTPSA id 233647720 for multimedia@freebsd.org; Fri, 10 Feb 2023 13:59:30 +0100 From: Florian Walpen To: multimedia@freebsd.org Subject: Latency correction with audio/jack 1.9.22 Date: Fri, 10 Feb 2023 13:59:30 +0100 Message-ID: <23280419.gYbqZ1YImA@z800> List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spamd-Result: default: False [-2.47 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.995]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; CTE_CASE(0.50)[]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:212.25.0.0/19]; RCVD_IN_DNSWL_LOW(-0.20)[212.25.24.36:from,212.25.24.38:received]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[multimedia@freebsd.org]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8758, ipnet:212.25.0.0/19, country:CH]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[submerge.ch]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[multimedia@freebsd.org]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4PCv2Y2nTdz44dj X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Hi, a short "heads up" to users of audio/jack: There is a fix to latency correction on FreeBSD in the latest JACK 1.9.22 release. This only matters to you if you have measured JACK latency with your setup (jack_iodelay) before and apply latency correction in your JACK config. That would be CLI arguments -I, --input-latency and -O, --output-latency for jackd, or the input-latency and output-latency settings for jackdbus. Any latency measurements with prior versions of JACK will not work for JACK 1.9.22. You have to measure again and adjust the parameters following an upgrade. More info on latency measurement and correction: https://github.com/0EVSG/freebsd_jack_notes#latency-correction The change was necessary because the original base latency was one JACK period off, leading to invalid measurements in some cases, and the measurements depending on the JACK period which shouldn't be. If you encounter problems with this change, please contact me directly or post a bug report on https://bugs.freebsd.org . FW