Skip to content

During playback, significant delay between switching active audible track when using Solo/Mute buttons #7052

Open

Description

@jessienab

Bug description

When using the Mute or Solo buttons on audio with 2 or more tracks, there is a significant 0.5s to 1s delay in the actual audio that is sent to the active audio server/sink. This issue has appeared for me in v3.6.1, but may have appeared in 3.6.0 to start with. It is not present in 3.5.1 (3.5.1-3 for Arch Linux).

EDIT: This is still appearing in 3.7.3 (3.7.3-1 on Arch Linux).

Steps to reproduce

  1. Open a 2 or more tracked audio file, or instead generate two or more tracks of audio, each with distinct or audibly different audio, in order to ensure differentiation is possible.
  2. Start playback of the entire project.
  3. Use the Mute or Solo button to either select or disable one of the tracks
  4. The active audio in playback will take 0.5-1s to change and be audible

Expected behavior

As in 3.5.0 and before, the active audio during playback is instantaneously audible when using the Mute or Solo buttons, there is no delay at all (or if there is a delay, it is microscopic to be not audible).

Actual behavior

Active audible audio takes 0.5-1s of time to become audible during active playback.

Audacity Version

stable version (from a Linux repository)

Operating system

Linux

Additional context

Possibly related #8469

$ pacman -Q | grep -i -e pipewire
libpipewire 1:1.2.2-1
pipewire 1:1.2.2-1
pipewire-alsa 1:1.2.2-1
pipewire-audio 1:1.2.2-1
pipewire-jack 1:1.2.2-1
pipewire-pulse 1:1.2.2-1
pipewire-v4l2 1:1.2.2-1

$ uname -a
Linux 6.6.44-2-lts

XFCE4 desktop environment

Please see the following videos showing functionality differences between 3.5.1 and 3.6.1
3.5.1: https://github.com/user-attachments/assets/11883fc1-2956-42c1-8a90-0a7acac31178
3.6.1: https://github.com/user-attachments/assets/8f7c046b-d5ce-41ea-a5c3-b60c2cfec9af

Thank you!

Activity

  1. added
    AU3-bug
    on Aug 6, 2024
  2. petersampsonaudacity commented on Aug 7, 2024

    @petersampsonaudacity

    I can't reproduce this on Windows 11 with 3.6.1 - so I'll flagthis as Linux issue.

  3. added
    Linux
    playback
    on Aug 7, 2024
  4. dozzzzer commented on Aug 27, 2024

    @dozzzzer
    Contributor

    @chinakov please bisect the issue

    (note: may be related to the Master FX)

  5. added
    regression
    on Aug 27, 2024
  6. added
    P3
    and removed
    regression
    on Aug 27, 2024
  7. chinakov commented on Feb 7, 2025

    @chinakov
    Contributor

    Most likely this was introduced via #7957, but it will take me a long time to bisect seeing as I will have to build each individual commit before this branch in Master. @saintmatthieu - please let me know if you need precise bisection of this issue.

  8. jessienab commented on Mar 19, 2025

    @jessienab
    Author

    Apologies for a mildly unrelated bump, I edited my original post, but the issue continues with 3.7.x branch; I was forced to upgrade due to dependency mismatch with 3.5.1.

    Instead, I setup a very simple PKGBUILD based on the AUR one for audacity-git, specifically to build 3.5.1 against updated system libraries/etc. I thought to share just to help other users that might be in this situation...

    Thank you to the team for investigating this, it's very much appreciated!

    PKGBUILD.txt

    # Modified from https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=audacity-git&id=032b196ab6581ee3462287686d945777c49f5948
    
    pkgname=audacity
    pkgver=3.5.1.d8f4c2d
    pkgrel=1
    pkgdesc="A program that lets you manipulate digital audio waveforms"
    arch=('i686' 'x86_64')
    url="https://www.audacityteam.org/"
    license=('GPL2' 'CCPL')
    groups=('pro-audio')
    depends=(
      alsa-lib
      expat
      ffmpeg
      flac
      gcc-libs
      gdk-pixbuf2
      glib2
      glibc
      gtk3
      gtkmm3
      jack
      lame
      libid3tag
      libmad
      libogg
      libsbsms
      libsndfile
      libsoxr
      libvorbis
      libxkbcommon-x11
      lilv
      lv2
      mpg123
      opusfile
      portaudio
      portmidi
      portsmf
      rapidjson
      soundtouch
      serd
      sord
      sratom
      sqlite
      suil
      twolame
      vamp-plugin-sdk
      vst3sdk
      wavpack
      wxwidgets-gtk3
      xcb-util
      xcb-util-cursor
      xcb-util-keysyms
      zlib
    )
    makedepends=('cmake' 'gcc' 'git' 'nasm')
    optdepends=('ffmpeg: additional import/export capabilities')
    provides=(
      'audacity'
      'ladspa-host'
      'lv2-host'
      'vamp-host'
      'vst-host'
      'vst3-host'
    )
    conflicts=('audacity')
    source=("https://github.com/audacity/audacity/archive/Audacity-3.5.1.tar.gz")
    sha256sums=('71dd1e1a8d58f4345abb3664d2446d3ba09c95d9c81b9e2a58d1a818ba793a23')
    
    build() {
      cd audacity-Audacity-3.5.1
      export CC=gcc
      export VST3_SDK_DIR=/usr/src/vst3sdk
    
      local cmake_args=(
        -B build
        -D CMAKE_BUILD_TYPE=Release
        -D CMAKE_INSTALL_PREFIX=/usr
        -D audacity_conan_enabled=OFF
        -D audacity_has_networking=OFF
        -D audacity_has_crashreports=OFF
        -D audacity_has_updates_check=OFF
        -D audacity_has_sentry_reporting=OFF
        -D audacity_lib_preference=system
        -D audacity_obey_system_dependencies=ON
    
      )
    
      cmake "${cmake_args[@]}"
      cmake --build build
    }
    
    package() {
      cd audacity-Audacity-3.5.1/build
      make DESTDIR="${pkgdir}" install
    }
    
  9. LWinterberg commented on Mar 19, 2025

    @LWinterberg
    Member

    Is this still an issue in master (audacity 4)?

  10. jessienab commented on Mar 19, 2025

    @jessienab
    Author

    Is this still an issue in master (audacity 4)?

    I can test but unfortunately I am not able to build at the moment

    cd audacity
    git checkout master
    cmake -B build
    cmake --build build
    

    Result: build7.log

    And I notice there's a lot of mentions of au3... is that only a transition holdover, or do I have to specify to build Audacity 4 somehow?

    Thank you! :)

  11. kryksyh commented on Mar 21, 2025

    @kryksyh
    Member

    @jessienab to build audacity 4, you need Qt 6.2.4, it would not build with a newer Qt version

  12. added this to the Audacity 3.7.4 milestone on Mar 21, 2025
  13. changed the title [-][3.6.1] During playback, significant delay between switching active audible track when using Solo/Mute buttons[/-] [+]During playback, significant delay between switching active audible track when using Solo/Mute buttons[/+] on Mar 21, 2025
  14. added this to [AU4] Backlog and removed this from [AU3] Main boardon May 22, 2025
  15. removed this from the Audacity 3.7.4 milestone on May 22, 2025
  16. chinakov commented on Aug 29, 2025

    @chinakov
    Contributor

    Still reproducible on the latest Master (190bedb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AU3-bugLinuxP3bugplayback

Type

Fields

Priority

None yet

Effort

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions