Alsa/PulseAudio mixing output from multiple processes

1

I wonder is it possible to rig alsa or/and pulseaudio so that audio output to left stereo channel will come form one process and to the right channel from another process?

Vadim Lebedev

Posted 2013-02-15T16:48:22.013

Reputation:

Answers

1

Absolutely. You can use ttable (ALSA) or module-remap-sink (PulseAudio) to make two virtual sinks combine into a physical sink, and then have different applications use each virtual sink.

Ignacio Vazquez-Abrams

Posted 2013-02-15T16:48:22.013

Reputation: 100 516

0

Since both ALSA and pulseaudio support dynamic mixing of multiple audio streams, you could just have two audio source processes that would output full stereo audio, but with one channel containing only silence. That should work with no modification in your sound system configuration.

Using two music player instances, for example, you could just tweak the Left/Right balance control, so that the appropriate channel of each instance would be fully silenced.

Why do you want to do that, anyway?

thkala

Posted 2013-02-15T16:48:22.013

Reputation: 1 769