• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

FXRoute 1.0 Beta – rebuilt from the ground up

what's the probability of ALSA support and/or pipe support (i.e. say flac outputting to stdout, fxroute reading from stdin)

Peter
 
what's the probability of ALSA support and/or pipe support (i.e. say flac outputting to stdout, fxroute reading from stdin)

Peter
Just to make sure I understand what you're after: do you mean an additional software input source in FXRoute, alongside the existing sources, that could either read raw PCM from stdin/a pipe or directly from an ALSA device?

So something along the lines of:

decoder/player -> stdout/pipe -> FXRoute source -> DSP -> output

If that's what you mean, that should be quite feasible. The main question would just be how you'd want to use/configure it in practice.
 
what's the probability of ALSA support and/or pipe support (i.e. say flac outputting to stdout, fxroute reading from stdin)

Peter
I thought the whole point of PipeWire integration is that all this is handled without FXRoute needing to code for it internally?
 
For normal ALSA applications, yes, that’the point of PipeWire/pipewire-alsa, and FXRoute shouldn’t need a separate ALSA backend for that.

I understood Peter’s pipe example as something slightly different though: being able to feed raw PCM directly into FXRoute via stdin, e.g. decoder | fxroute, without going through PipeWire. PipeWire doesn’t provide that interface automatically. You could already bridge such a stream into PipeWire with something like pw-cat, but native stdin/pipe support would be a separate feature.

Peter, is that what you had in mind?
 
For normal ALSA applications, yes, that’the point of PipeWire/pipewire-alsa, and FXRoute shouldn’t need a separate ALSA backend for that.

I understood Peter’s pipe example as something slightly different though: being able to feed raw PCM directly into FXRoute via stdin, e.g. decoder | fxroute, without going through PipeWire. PipeWire doesn’t provide that interface automatically. You could already bridge such a stream into PipeWire with something like pw-cat, but native stdin/pipe support would be a separate feature.

Peter, is that what you had in mind?

Yep...that's it.

A lot of open source players (such as Lyrion) or ones that hobbyists such as myself built follow the pipeline method and most open source audio utilities (ffmpeg, flac, sox etc) provide this...so it would open up another branch of end users and help catapult FXRoute forward in it's pursuit of world domination !!!.

Obviously I am just one man yelling at the clouds (noting the "old" bit in my handle) but ALSA to me is the "one true way" and the new fangled pulseaudio/pipeware/jack are evil. I like the look of FXRoute but I couldn't integrate it into my data flow without at least pipe support, noting it would be stdin -> FXRoute -> stdout (OR -> alsa directly).

So yes, I am a selfish bastard asking for this!!!

Peter
 
Yep...that's it.

A lot of open source players (such as Lyrion) or ones that hobbyists such as myself built follow the pipeline method and most open source audio utilities (ffmpeg, flac, sox etc) provide this...so it would open up another branch of end users and help catapult FXRoute forward in it's pursuit of world domination !!!.

Obviously I am just one man yelling at the clouds (noting the "old" bit in my handle) but ALSA to me is the "one true way" and the new fangled pulseaudio/pipeware/jack are evil. I like the look of FXRoute but I couldn't integrate it into my data flow without at least pipe support, noting it would be stdin -> FXRoute -> stdout (OR -> alsa directly).

So yes, I am a selfish bastard asking for this!!!

Peter
Thanks Peter,

I think the cleanest integration would be to support exactly the kind of pipeline you described:

stdin -> FXRoute -> stdout

or optionally:

stdin -> FXRoute -> ALSA

That would let tools like Lyrion/ffmpeg/sox feed audio straight through FXRoute’s normal DSP chain without needing PipeWire or a virtual audio device.

And yes, if this helps with the world-domination roadmap, I suppose we’d better take it seriously.
. :D
 
Last edited:
Squeezelite client apparently already natively supports all three, PipeWire (via ALSA/Pulse shim), ALSA direct and stdout
 
  • flexible output routing instead of fixed speaker layouts
  • PEQ and Convolver/FIR per output or way, or globally, with filter assignment and import per bank
Nice, what file format does the convolver accept?
Mono .WAV files? 32-bit ?

When I entered the FXRoute chat in the other thread, there was mention of MacOS.
I was thinking there was something in progress for Mac.
 
Nice, what file format does the convolver accept?
Mono .WAV files? 32-bit ?

When I entered the FXRoute chat in the other thread, there was mention of MacOS.
I was thinking there was something in progress for Mac.
The convolver accepts mono or stereo WAV/IRS files. 32-bit float is fine, and 64-bit float WAV filters are supported as well.

Internally FXRoute processes audio/convolution in 32-bit float. A 64-bit filter will therefore be converted for processing, but in practice I don't see any meaningful audio-quality disadvantage there, float32 already provides plenty of precision for audio DSP and a very large internal dynamic range >1500dB.

You can also use separate mono IRs for left/right instead of a single stereo file.

Regarding macOS: there isn't currently a native Mac version in development. I mentioned macOS in the other thread because you're using a Mac, and FXRoute itself is currently built around Linux/PipeWire, so running it directly on macOS isn't straightforward.
macOS itself is difficult. The obvious option would be running Linux in a VM.
On an M3 Mac, Asahi Linux might also be an option, but that’s completely untested with FXRoute.
 
Last edited:
Nice, what file format does the convolver accept?
Mono .WAV files? 32-bit ?

When I entered the FXRoute chat in the other thread, there was mention of MacOS.
I was thinking there was something in progress for Mac.
Intel Mac mini without T2: the FXRoute Ubuntu image could work directly, as described here: https://linuxvox.com/blog/mac-mini-linux/

Intel Mac mini with T2: you may need a T2-specific Linux/Ubuntu image first, but then the normal FXRoute installer should work on top of that.

M1/M2: Linux via Asahi is possible, and FXRoute itself supports ARM (including ARM optimizations for Raspberry Pi), but I haven't tested it on Apple Silicon. So technically it should be possible, but I wouldn't expect it to necessarily work out of the box.
 
Yep...that's it.

A lot of open source players (such as Lyrion) or ones that hobbyists such as myself built follow the pipeline method and most open source audio utilities (ffmpeg, flac, sox etc) provide this...so it would open up another branch of end users and help catapult FXRoute forward in it's pursuit of world domination !!!.

Obviously I am just one man yelling at the clouds (noting the "old" bit in my handle) but ALSA to me is the "one true way" and the new fangled pulseaudio/pipeware/jack are evil. I like the look of FXRoute but I couldn't integrate it into my data flow without at least pipe support, noting it would be stdin -> FXRoute -> stdout (OR -> alsa directly).

So yes, I am a selfish bastard asking for this!!!

Peter
Peter, i just added STDIN support (in next Beta 11). It turned out to be quite elegant to implement and is now simply another input option in FXRoute.

It’s deliberately minimal and universal, but also a little dumb: raw PCM carries no metadata, so FXRoute needs to be told the format, sample rate and channel count, e.g.

ffmpeg -v error -i album.flac -f s32le -acodec pcm_s32le -ar 48000 -ac 2 - \
| fxroute stdin --format s32le --rate 48000 --channels 2

sox input.wav -t raw -e signed-integer -b 16 -L -r 44100 -c 2 - \
| fxroute stdin --format s16le --rate 44100 --channels 2


So the input side should now work for exactly this kind of pipeline.

I still need to look at the output side. One possible option is a virtual ALSA sound card that FXRoute can select just like a normal output device, with the processed audio then available to the next application. But that’s for another day.
 
I’ve been testing Linux resamplers for realtime use on low-power hardware.

On an Intel N150, 96 → 44.1 kHz:

ResamplerBalancedCPU / 60 s audio
PipeWire q456.590.157 s
PipeWire q864.040.313 s
PipeWire q1465.802.234 s
SoXR VHQ70.040.081 s
SoX Vulkan CPU99.610.276 s
The surprising result is that PipeWire gets expensive quite quickly, while SoXR is both faster and higher quality.

More surprising: the CPU path of SoX Vulkan 16.2.1 reaches about 99.61 Balanced without needing the GPU, and is still very cheap on an N150.

Even with 12 channels, 48 → 192 kHz, it still managed about 18× realtime with roughly 32 MB RAM.

So for me the interesting takeaway is:

99.x-quality resampling does not necessarily require a powerful desktop CPU.

The absolute top results around 99.8–99.9 with ARDFTSRC or Vulkan reference mode were much more demanding or hardware-dependent, so ~99.6 currently looks like a much better practical realtime trade-off.

For slower systems, SoXR VHQ still looks like an excellent lightweight fallback.

I haven’t tested Raspberry Pi 5 yet.
 
Is upsampling more or less demanding than down?
Usually upsampling is more demanding, mainly because the resampler has to generate many more output samples.

For example, 48 → 192 kHz produces 4× as many samples as 48 kHz input, so the computational cost can rise substantially.

Downsampling has its own cost because the anti-alias filter can be demanding, so it is not universally cheaper — it depends on the algorithm and conversion ratio.

In my current tests, 48 → 192 kHz was indeed noticeably heavier than typical downsampling cases.
 
A quick FXRoute development update

Quite a lot has been happening since Beta 12, so I thought it was time for a small preview of what is already working and what is currently being worked on.

One of the bigger additions is surround support. FXRoute can now handle multichannel audio from a digital input, including Dolby Digital (AC-3), DTS and PCM, decode it internally and route the individual channels through the existing DSP system.

The surround configuration also includes bass management and subwoofer routing, so setups such as 3.1, 5.1 or systems with two subwoofers can be built using the same general routing approach as the existing stereo/crossover modes.

For digital inputs, FXRoute can also manage the audio interface clock automatically where the hardware and driver expose the required controls. For example, when an external S/PDIF source becomes active, the interface can switch to the external digital clock and return to its internal clock when going back to normal application playback. This has so far been tested with the Focusrite Scarlett 16i16.

There has also been quite a bit of work on automatic input selection and source detection. FXRoute can detect activity and, for digital sources, identify whether the incoming stream is PCM, Dolby Digital or DTS. The source-selection logic is currently being refined further, including support for additional presence information from external systems such as Home Assistant.

Another larger change is the new sample-rate-conversion quality selection. Instead of exposing individual resampler implementations, the UI now uses three straightforward quality levels:

  • Low – ~70% – lower CPU usage
  • Standard – ~82% – a good general-purpose setting
  • High – ~99.6% – very high resampling quality
These percentages refer to the measured resampling quality in the reference tests used during development.

The switching is handled automatically by FXRoute, including the required audio restart.

Under the hood, the multichannel processing path has also received substantial performance work. This becomes increasingly important as the number of channels, DSP stages and sample rates increase.

There are several smaller fixes and improvements as well, including input/device handling and continued work on the measurement system.

Some of this is already running on the development system and some parts are still being finished and tested. But the next version is becoming a considerably larger update than originally planned.
 
Kudos, huge strides!!

While I have no interest in proprietary decoding of multichannel surround content, I am interested in old school upmixing, originally from stereo, to say 5.2.1 (stereo bass as well as mono subs à la MSO)

So 8ch input to FXroute.

Will FXroute then handle breaking these down further? Each LRC "stack" split say 3- or 4-way total speaker count under 24...
 
Kudos, huge strides!!

While I have no interest in proprietary decoding of multichannel surround content, I am interested in old school upmixing, originally from stereo, to say 5.2.1 (stereo bass as well as mono subs à la MSO)

So 8ch input to FXroute.

Will FXroute then handle breaking these down further? Each LRC "stack" split say 3- or 4-way total speaker count under 24...
Thanks! I’m not quite sure what you mean by 5.2.1 here. If by “stereo bass” you mean the L/R woofer sections of the main speakers, plus an additional mono sub/MSO system, then yes. In FXRoute terms that would basically be the existing multi-way L/R crossover, with a separate sub layer underneath.

What FXRoute does not do is take an arbitrary finished 8-channel signal and then fan individual channels out into separate 3- or 4-way speaker stacks.

Thinking about your setup, though, it may make more sense for FXRoute to do the stereo upmix itself rather than requiring an already-upmixed 8-channel input and then adding a large routing matrix afterwards. A stereo upmixer is planned as an optional feature.

What kind of old-school upmixer are you looking for exactly? If you have a particular matrix/logic approach in mind, that would be useful to know.
 
I also want automatically variable Loudness Control my ad-hoc volume level control to be via a Big Knob
Thanks! I’m not quite sure what you mean by 5.2.1 here. If by “stereo bass” you mean the L/R woofer sections of the main speakers, plus an additional mono sub/MSO system, then yes.
Well I will be testing, comparing xovers say [200-50kHz] as separate channels all the way down plus a separate mono string below 80 to

[200-80kHz] as LRC, then below 80Hz as mono both within the stacks and freely placed for tackling room resonances.

Maybe even keeping both as options, hopefully being able to switch between (film night vs critical listening) without too much difficulty.


> What FXRoute does not do is take an arbitrary finished 8-channel signal and then fan individual channels out into separate 3- or 4-way speaker stacks.

Not sure I understand? The FR-L signal gets split to its stack, the FR-R to its stack, Center might only be 2-way, the Rsurrounds likely not split at all.

I will be trying various devices for the stereo upmixing, Hafler OG and Schiit SYN are analog examples.

I will be happy to test your implementation of that in the mix, but will consider the various DSP functions separately e.g. Loudness Contour, xover, PEQ, DRC and as you know player/renderer perhaps never used.

DSPi project recently did this with two algo's, Sinner and Logician former emulating the Schiit device I already have, the latter similar to Dolby Pro Logic.

 
Variable loudness is actually one of the areas that is already quite well covered in FXRoute.

The important part isn't merely having a loudness contour — it's having a trustworthy reference for it. Variable loudness only really makes sense when the system knows how the current volume relates to the chosen reference listening level. That can become surprisingly awkward when volume control, DSP and playback are spread across several independent devices.

In FXRoute the Master Volume, reference level and loudness processing are all part of the same system, so that relationship is known. That's one of the advantages of having the whole signal chain under one roof.

I can't supply the physical Big Knob :-) — currently there is the large Master Volume control in the UI — but mapping Master Volume to an external hardware knob is technically a much smaller problem than getting the loudness behaviour itself right.

On the bass arrangements: yes, I think we're talking about two related but distinct concepts, and keeping both available makes sense.

FXRoute's stereo-bass arrangement does rather more than simply adding a delay: the L and R bass paths remain independent and each side is integrated with its corresponding main speaker.

The MSO-style arrangement is different. There the distributed subs share a common mono bass signal and are individually adjusted so that the array works together against the room. So something like:

critical listening: stereo / stereo-bass configuration
film night: surround + mono bass-managed/LFE sub system

maps quite naturally onto FXRoute.

The switching itself isn't a major problem either. Each mode can retain its own routing and settings, so with sufficient physical outputs the system can stay wired and the change can happen in software.

Not sure I understand? The FR-L signal gets split to its stack, the FR-R to its stack, Center might only be 2-way, the Rsurrounds likely not split at all.
Yes — then I misunderstood what you meant.

Front L/R being split into their active stacks is exactly the crossover model. Extending the same principle to a Center also makes sense; I could see that reasonably going as far as a 3-way Center.

I probably wouldn't extend that model indefinitely to all rear and surround speakers unless there were a real use case for it — at that point the routing complexity grows rather quickly.

And I'm assuming your “200–50 kHz” and “200–80 kHz” are meant to be Hz, unless the tweeters have become very ambitious. :-)

A crossover around 200 Hz can be quite reasonable for a woofer that is physically part of the front speaker stack. For freely positioned subs whose main purpose is room-mode control, that's a rather different job: at 200 Hz placement and localisation become much more significant. I would therefore keep the front-stack woofer system and the distributed mono room-bass system conceptually separate.

I also understand your point about testing the individual functions independently — loudness, crossover, PEQ, DRC, upmixing and rendering don't necessarily all have to come from the same box in your test setup.

For analogue upmixers such as Hafler-derived arrangements or the Schiit Syn, FXRoute can of course accept analogue sources, but the current analogue-input model is primarily aimed at ordinary stereo sources. Taking a complete externally generated multichannel analogue output back into FXRoute as a generic multichannel DSP input would need additional routing support.

And where it can be avoided, I'd also prefer not to add an unnecessary D/A → analogue processing → A/D round trip.
 
Back
Top Bottom