Re: [linux-audio-dev] Writing PCM to left and right channel sperately?

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Fri Mar 10 2006 - 10:32:19 EET

Tobias Scharnberg wrote:
> I need to use the left and the right audio channel seperately.

If you're using the ALSA library, you can use the following definitions
in /etc/asound.conf or ~/.asoundrc to get two independent virtual
devices:

pcm.left {
        type plug
        slave.pcm {
                type dshare
                ipc_key 12345
                slave.pcm "hw:0,0"
                slave.channels 2
                bindings {
                        0 0
                }
        }
}

pcm.right {
        type plug
        slave.pcm {
                type dshare
                ipc_key 12345
                slave.pcm "hw:0,0"
                slave.channels 2
                bindings {
                        0 1
                }
        }
}

HTH
Clemens
Received on Fri Mar 10 12:15:13 2006

This archive was generated by hypermail 2.1.8 : Fri Mar 10 2006 - 12:15:13 EET