seb.mondet.org | blog-index

Couple Of Pipewire Hacks

Finding very few blog posts about making music in the Pipewire era.
So, here are a couple of things I found since upgrading.
Date: Thu, 5 Jan 2023.
Creative Commons License: CC-By
🗄Tags: #JackAudio, #DailyHacks, #LinuxMusic.
🔗Toot.

Your distro may have upgraded itself within the past year or so and suddenly some audio stuff does not work as expected.

Pipewire has entered the arena.

Good old Jack is still available but not actually talking to any hardware; it is some kind of compatibility layer. QJackCtl still works, I could even find the old “connections” interface deep in the Misc tab of the settings. It's actually now better because every device shows up magically; and no need to create “aggregate” devices with the obscure ALSA configuration language.

Here I am hi-jacking Spotify or Youtube's output coming from Firefox, recording into two Ardour tracks, together with the direct USB output of my Mooer GE300Lite. Look Ma! No .asoundrc involved 💪

I end-up needing the following commands quite often (I'm still using Comk):

Setting the sampling rate

The default sampling rate is 48 000 Hz which is indeed recommended for most work but I have a bunch of Ardour sessions in 44.1 kHz that I need to reuse often.

pw-metadata -n settings 0 clock.force-rate 44100

to put it back in 48k:

pw-metadata -n settings 0 clock.force-rate 48000

Latency defaults

I also encountered that the default “quantum” of 1024 bytes was too large for recording.

pw-metadata -n settings 0 clock.force-quantum 256

Just show the current settings

That's it, have fun:

pw-metadata -n settings