Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Feb 15 '13 at 22:38

This question came from our site for professional and enthusiast programmers.

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?

share|improve this answer

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.

share|improve this answer

You must log in to answer this question.