Adding audio fx before audio output

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
xos
Established Member
Posts: 12
Joined: Sat Jul 23, 2022 12:01 pm
Been thanked: 5 times

Adding audio fx before audio output

Post by xos »

Is it possible for a program to add a EQ for example before audio output?
Any standard way to do this on a computer that uses pulse audio?
Or do you patch and rebuild everything?
Or is it something that can be done using pipewire?

User avatar
bluebell
Established Member
Posts: 1927
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 113 times
Been thanked: 122 times

Re: Adding audio fx before audio output

Post by bluebell »

xos wrote: Tue Nov 07, 2023 2:24 pm

Is it possible for a program to add a EQ for example before audio output?
Any standard way to do this on a computer that uses pulse audio?
Or do you patch and rebuild everything?
Or is it something that can be done using pipewire?

With jack it's no problem. I have no experience with Pulseaudio but IIRC Carla can act as a plugin host and as a Pulseaudio device, so you can load your EQ plugin there and let your program output to Carla while Carla is outputting to system out.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
Largos
Established Member
Posts: 638
Joined: Mon Oct 05, 2020 12:21 pm
Has thanked: 72 times
Been thanked: 186 times

Re: Adding audio fx before audio output

Post by Largos »

xos
Established Member
Posts: 12
Joined: Sat Jul 23, 2022 12:01 pm
Been thanked: 5 times

Re: Adding audio fx before audio output

Post by xos »

When I look at pulse effect here...
https://github.com/wwmm/easyeffects
...it says that it started to use pipewire filters.

And then I found this...
https://docs.pipewire.org/audio-dsp-fil ... ample.html
...example code in C on how to make a pipewire filter I guess.

Does this mean that I should focus on learning this if I want to make audio effects that can be used in future Linux desktop installations.

User avatar
sunrat
Established Member
Posts: 925
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 152 times
Been thanked: 247 times

Re: Adding audio fx before audio output

Post by sunrat »

For Pulseaudio I use and recommend Pulseaudio Parametric Equalizer . Setup is a breeze; just install it and it's ready to go basically. Pulseeffects (or Easyeffects) works OK for other effect. I wouldn't use PulseAudio for anything but playback though, for music production it is rather lacking.

For JACK I use the standalone JACK version of LSP PEQ. It's a bit more work to set it up to start with JACK but works excellently.

For PipeWire I did a test setup a while back and got LSP PEQ working with that too. However I don't use PW as daily driver yet as my classic PA > JACK > ALSA setup is working nicely.

Post Reply