[linux-audio-user] Is there no way to split L+R channels for ALSA applications?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Malcolm Baldridge wrote:
> a way to specify just one channel of a given output device, i.e.,
> just the LEFT channel or the RIGHT channel of the main PCM output
> device.

pcm.left {
	type plug
	slave.pcm "hw:0"
	slave.channels 2
	ttable.0.0 1
}

pcm.right {
	type plug
	slave.pcm "hw:0"
	slave.channels 2
	ttable.0.1 1
}


If you want to use both devices at the same time, you have to use the
dshare plugin:

pcm.shared_left {
	type plug
	slave.pcm {
		type dshare
		ipc_key 123456
		slave.pcm "hw:0"
		slave.channels 2
		bindings.0 0
	}
}

pcm.shared_right {
	type plug
	slave.pcm {
		type dshare
		ipc_key 123456
		slave.pcm "hw:0"
		slave.channels 2
		bindings.0 1
	}
}


HTH
Clemens



[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux