Hi Konrad,

Is this in reference to fedora-jam-audio-config? Honestly, that's not a bad idea, and we can certainly review that part of the code. However, quantum and sample rate tends to be very specific about what it allows (for instance, for the sample rates, 44100 isn't a power-of-two whereas 48000 is). I do agree that the quantum/buffer amounts are power-of-two, but even those have their upper limit as we don't typically go above 8192 or even use 4096 in most cases.

That said, pull requests are welcome!

Erich

On 1/19/26 12:46 PM, Konrad Kleine wrote:
Hi Erich,

I'm interested in music and Fedora and looked at the packages very briefly.

Thank you for your time and work!

I saw some bash code that checked for various power of two numbers and I wondered if the following could help simplify this code a bit:

function is_power_of_2() {
    local n=$1
    if (( (n & (n - 1)) == 0 )) && (( n > 0 )); then
        return 0  # true
    else
        return 1  # false
    fi
}

# Example usage:
NUM=32;
if is_power_of_2 $NUM ; then
    echo "$NUM is a power of 2"
else
    echo "$NUM is not a power of 2"
fi

I probably won't have the time to look into the code a lot more.

Regards
Konrad

On Sat, Jan 17, 2026 at 1:17 AM Erich Eickmeyer <[email protected]> wrote:

    Hi all,

    I'm making an effort to modernize a lot of the audio/music items,
    particularly Fedora Jam, to be up-to-date on some of the latest
    technologies.

    When last I left off with Fedora Jam back in 2021, most of its
    capabilities hadn't depended on PipeWire yet and were done using a
    combination of PulseAudio and JACK, bridged using a utility called
    Studio Controls written by my friend Len Ovens, originally from
    Ubuntu
    Studio Controls.

    Fast-forward 5 years and PipeWire has obsoleted Studio Controls
    and any
    and all bridging. However, musicians and audio engineers alike still
    depend on a few things, including lowering the audio latency. This is
    accomplished primarily with a combination of these items:

      1) lowering the buffer (quantum)
      2) raising the sample rate
      3) using certain kernel boot parameters
      4) switching the kernel to a low-latency or real-time kernel.

    #4 above is moot for Fedora. However, #3 can be accomplished with
    a GUI
    utility (really some Zenity scripts) I wrote for Ubuntu that I have
    forked. It is available here:
    https://pagure.io/fedora-jam-audio-configuration

    While Fedora Jam Audio Configuration can accomplish #1 and #2, I
    found
    an extension for GNOME Shell and a widget for KDE Plasma that make #1
    and #2 simple to accomplish. They have both been packaged as well.

    So, if I could get one or a few people to review the following
    packages,
    that would be wonderful:

    - https://bugzilla.redhat.com/show_bug.cgi?id=2430073
    (fedora-jam-audio-config)
    - https://bugzilla.redhat.com/show_bug.cgi?id=2430099
    (plasma-pipewire-settings)
    - https://bugzilla.redhat.com/show_bug.cgi?id=2430546
    (gnome-shell-extension-pipewire-settings)

    I would normally volunteer to review a package for someone, but I'm
    5-years rusty and, as long as these packages are up-to-snuff, then
    I'd
    be more confident to begin reviewing other packages again. This
    is, of
    course, unless someone can convince me that my packaging is decent
    and
    that I shouldn't feel less-than-qualified. :)

    Anyhow, thanks for your help in advance! I'm looking forward to being
    part of this community again!
    Erich
    --
    Erich Eickmeyer

-- _______________________________________________
    devel mailing list -- [email protected]
    To unsubscribe send an email to [email protected]
    Fedora Code of Conduct:
    https://docs.fedoraproject.org/en-US/project/code-of-conduct/
    List Guidelines:
    https://fedoraproject.org/wiki/Mailing_list_guidelines
    List Archives:
    https://lists.fedoraproject.org/archives/list/[email protected]
    Do not reply to spam, report it:
    https://pagure.io/fedora-infrastructure/new_issue
-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to