Re: Independent Simultaneous playback over 5 channels

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

 



Allen Kennedy wrote:
>   I'm trying to get an asound.conf file set up that will allow me
> to play 5 different wav files over separate channels
> simultaneously, with a command like this:
>
> #aplay -D channel1 1.wav & aplay -D channel2 2.wav &
>   aplay -D channel3 3.wav & aplay -D channel4 4.wav &
>   aplay -D channel5 5.wav

Try this:

pcm.channel {
	@args [ CHANNEL ]
	@args.CHANNEL {
		type integer
	}
	type plug
	slave.pcm {
		type dshare
		ipc_key 220057      # some random but unique number
		slave.pcm "hw:0"    # the output device
		slave.channels 6
		bindings {
			0 $CHANNEL
		}
	}
}


Then you can use devices "channel:0" through "channel:5".


HTH
Clemens

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux