Re: independent play(write) on the left/right channel of audio devic e

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

 



Steen, Gerd wrote:
> my configuration are 2 total independent Task, which need to write on the
> audio device. 
> 
> ->Task one needs to write on the right channel of stereo device Task two 
> ->needs to write on the left channel of stereo device

Put the following in ~/.asoundrc or /etc/asound.conf:

pcm.left {
	type dshare
	slave {
		pcm "hw:0"	# or whatever the stereo device is
		channels 2
	}
	bindings {
		0 0
	}
}	

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

Then use devices "left" and "right", or "plug:left" etc. for automatic
sample rate/format conversion.


HTH
Clemens


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux