How to Create a 16-Input Stereo Mix in Ecasound

This guide explains how to configure Ecasound to sum a 16-channel audio interface down to an instantaneous, ultra-low-latency stereo monitor mix. By combining real-time buffering parameters (-B:rt) with Ecasound’s channel-routing operator (-erc), you can capture 16 independent hardware inputs and collapse them into a two-channel output destination in real time without the overhead of a graphical digital audio workstation.


The Command Configuration

To monitor 16 inputs live and route them to a stereo pair using ALSA, run:

ecasound -B:rt -b:128 -r:sched_fifo \
  -f:f32_le,16,48000 -i:alsa,hw:1 \
  -f:f32_le,2,48000 -o:alsa,hw:0 \
  -erc:1,1 -erc:2,2 \
  -erc:3,1 -erc:4,2 \
  -erc:5,1 -erc:6,2 \
  -erc:7,1 -erc:8,2 \
  -erc:9,1 -erc:10,2 \
  -erc:11,1 -erc:12,2 \
  -erc:13,1 -erc:14,2 \
  -erc:15,1 -erc:16,2

Parameter Breakdown


Adding Gain and Centered Routing

If specific channels require individual level adjustments or center-panning (summed to both Left and Right simultaneously), route each channel across multiple chains:

ecasound -B:rt -b:128 \
  -a:ch1 -i:alsa,hw:1 -erc:1,1 -erc:1,2 -ea:70 \
  -a:ch2 -i:alsa,hw:1 -erc:2,1 -ea:100 \
  -a:ch3 -i:alsa,hw:1 -erc:3,2 -ea:100 \
  -a:all -f:f32_le,2,48000 -o:alsa,hw:0