Skip to content

v0.9.2 — latency compensation for DAWs through PipeWire

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Oct 04:01
· 1 commit to main since this release

Latency compensation for DAWs through PipeWire. No driver or panel
changes
apart from the version number.

Added

  • phasex64-wireplumber now reports the interface's own delay to
    PipeWire through latency.internal.* on the PHASE X64 nodes
    (playback 19 samples + 4.0 ms, capture 34 samples + 0.6 ms; 274 samples
    at 48 kHz in total). The driver sets no ALSA delay and PipeWire's ALSA
    plugin never asks for one, so a DAW compensated only one buffer each
    way. Measured with REAPER on pipewire-jack: the error of an analog
    loopback recording went from about 290 samples to within ±1 ms of the
    right place at quantum 64, 256 and 1024 (four takes, -0.7 to +0.4 ms);
    the USB part varies by about 1 ms between starts of the device, which
    no fixed value removes.
  • tests/hw/px_latency.py: sample-accurate round-trip latency
    measurement through raw ALSA (linked playback and capture, impulse
    stimulus, digital tap and analog loopback), plus offline analysis of
    recordings, a null test and a REAPER-project reader. Refuses to run
    with Digital Input Lock on or the card in use, never writes mixer
    controls, closes its PCMs on every exit path, uses realtime
    scheduling when permitted (0 xruns in 10 runs at the smallest buffer,
    64x2), and has an offline self-test.
  • tests/hw/reaper-latency/: a REAPER project and step-by-step guide
    for checking the compensation at several buffer sizes.
  • Measurements in tests/hw/REPORT.md: ~4.6 ms USB pipeline and ~53
    samples in the converters, independent of the buffer size.

Changed

  • Documentation: the "~54 samples" REAPER offset and the advice to enter a
    manual offset are replaced by the measured numbers above.

Fixed

  • Measurement note: the earlier statement that 88.2 and 96 kHz "break the
    capture engine" came from a run with the S/PDIF loopback cable
    connected and was already marked invalid in tests/hw/REPORT.md; the
    new script accepts all four rates.

Install

  • Arch Linux, Manjaro, EndeavourOS: download the driver and the
    control panel package, check them, install them (pacman refuses
    unsigned packages given as a URL, so install the downloaded files):

    curl -L --remote-name-all https://github.com/flarkflarkflark/phasex64-linux/releases/download/v0.9.2/SHA256SUMS \
      https://github.com/flarkflarkflark/phasex64-linux/releases/download/v0.9.2/snd-usb-phasex64-dkms-0.9.2-1-any.pkg.tar.zst \
      https://github.com/flarkflarkflark/phasex64-linux/releases/download/v0.9.2/phasex64-panel-0.9.2-1-any.pkg.tar.zst
    sha256sum -c --ignore-missing SHA256SUMS
    sudo pacman -U snd-usb-phasex64-dkms-0.9.2-1-any.pkg.tar.zst \
      phasex64-panel-0.9.2-1-any.pkg.tar.zst

    phasex64-wireplumber is optional; read "PipeWire / JACK" in the
    manual first.

  • Any other distribution: download phasex64-linux-0.9.2.tar.gz,
    check it against SHA256SUMS and run scripts/install-dkms.sh.

Details, checksums and Secure Boot:
Installation. DKMS builds the module on your
machine; no prebuilt kernel module is shipped.

Not affiliated with or endorsed by TerraTec, TerraSoniq, Musonik or
Ploytec; an experimental kernel module, provided without warranty
(GPL-2.0-only).

Built by loopback-coding: AI-assisted, human-directed, hardware-verified.
Every change went out, came back through real hardware, and was measured
before it counted.