• Bug#1105956: fluidsynth: Fluidsynth Causes Distortion of Pipewire Audio

    From Julian Francisco Lehr-Bryant@21:1/5 to All on Sat May 17 21:30:01 2025
    Package: fluidsynth
    Version: 2.4.4+dfsg-1
    Severity: important

    Dear Maintainer,

    It has been reported by several other users on the pipwire page (reference pipewire bug #1100943) that fluidsynth is causing dramatic audio distortion. Audio will play slightly out of sync/behind time, and exhibits a very loud crackling.

    Restarting the fluidsynth service (systemctl --user restart pipewire.service) abates the problem for each boot, but only uninstalling fluidsynth causes the problem to go away completely.

    Further, this problem only seems to occur over either wired headphones or HDMI/DP audio. Using bluetooth headphones seems to avoid the distortion problem.

    So far I have noticed this exact issue on two seperate machines/sound cards both using fluidsynth 2.4.4 and pipewire 1.4.2-1. The issue has persisted for the last several months on earlier versions of both packages as well.

    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.12.27-amd64 (SMP w/16 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages fluidsynth depends on:
    ii init-system-helpers 1.68
    ii libc6 2.41-7
    ii libfluidsynth3 2.4.4+dfsg-1
    ii libglib2.0-0t64 2.84.1-2
    ii libpipewire-0.3-0t64 1.4.2-1
    ii libsdl2-2.0-0 2.32.4+dfsg-1
    ii libsystemd0 257.5-2

    Versions of packages fluidsynth recommends:
    ii qsynth 1.0.3-1

    fluidsynth suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fabian Greffrath@21:1/5 to All on Wed May 21 09:40:01 2025
    Hi Julian,

    Am 2025-05-17 21:22, schrieb Julian Francisco Lehr-Bryant:
    Restarting the fluidsynth service (systemctl --user restart
    pipewire.service) abates the problem for each boot, but only
    uninstalling fluidsynth causes the problem to go away completely.

    this is just a blind shot, but does adding the line

    OTHER_OPTS='-z8192'

    to /etc/default/fluidsynth help with this issue?

    Cheers,

    - Fabian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Julian Francisco Lehr-Bryant@21:1/5 to fabian@greffrath.com on Thu May 22 18:20:02 2025
    On Wed, 21 May 2025 09:34:51 +0200 Fabian Greffrath
    <fabian@greffrath.com> wrote:

    this is just a blind shot, but does adding the line

    OTHER_OPTS='-z8192'

    to /etc/default/fluidsynth help with this issue?


    -z 8192 fixed the issue. Setting -r 4800 also fixed the issue, which was
    hinted at in the pipewire thread.

    Not really sure which one is a "better" fix, but both do work.

    Thanks for the help,

    Julian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)