Skip to contentSkip to conversation

Multi device for 2 C-Ports... help needed

DISCUSSION Geoff Beasley 2 participants 3 messages Apr 24, 2005 – May 2, 2005

lore
Share & tools
lore
#0 lore raw

I need your help once more gentlefolk. I did try this with Clemens and Jaroslav's help in January and nearly got there. I omitted to lock the two cards together! I didn't realize that without this it would just crash the system.

I went to the Alsa site to find out how to do this again, but I got completely confused. There's no mention of the multi plugin at all.I know with the right script I will certainly be able to get it going this time and give it a good test.
Any takers ?

BTW Jaroslav, I assume the fix you made to alsalib back in January has been added to the current lib ?

Thanks in advance and keep up the mighty effort !

Geoff.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw
Quoted 2 lines · Geoff Beasley

I went to the Alsa site to find out how to do this again, but I got completely confused. There's no mention of the multi plugin at all.

There is a small example, well hidden at
<http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html>.

Try this:

pcm.cport_a {
type hw
card 0 # change the card numbers as appropriate
device 0
}
pcm.cport_b {
type hw
card 1
device 0
}

pcm.playback20 {
	type multi
	slaves.a { pcm cport_a channels 10 }
	slaves.b { pcm cport_b channels 10 }
	bindings [
		{ slave a channel 0 }
		{ slave a channel 1 }
		{ slave a channel 2 }
		{ slave a channel 3 }
		{ slave a channel 4 }
		{ slave a channel 5 }
		{ slave a channel 6 }
		{ slave a channel 7 }
		{ slave a channel 8 }
		{ slave a channel 9 }
		{ slave b channel 0 }
		{ slave b channel 1 }
		{ slave b channel 2 }
		{ slave b channel 3 }
		{ slave b channel 4 }
		{ slave b channel 5 }
		{ slave b channel 6 }
		{ slave b channel 7 }
		{ slave b channel 8 }
		{ slave b channel 9 }
	]
}
pcm.capture24 {
	type multi
	slaves.a { pcm cport_a channels 12 }
	slaves.b { pcm cport_b channels 12 }
	bindings [
		{ slave a channel 0 }
		{ slave a channel 1 }
		{ slave a channel 2 }
		{ slave a channel 3 }
		{ slave a channel 4 }
		{ slave a channel 5 }
		{ slave a channel 6 }
		{ slave a channel 7 }
		{ slave a channel 8 }
		{ slave a channel 9 }
		{ slave a channel 10 }
		{ slave a channel 11 }
		{ slave b channel 0 }
		{ slave b channel 1 }
		{ slave b channel 2 }
		{ slave b channel 3 }
		{ slave b channel 4 }
		{ slave b channel 5 }
		{ slave b channel 6 }
		{ slave b channel 7 }
		{ slave b channel 8 }
		{ slave b channel 9 }
		{ slave b channel 10 }
		{ slave b channel 11 }
	]
}
pcm.both {
	type plug
	slave.pcm {
		type asym
		playback.pcm playback20
		capture.pcm capture24
	}
}
Quoted 1 line

When I get it going can I expect any extra latency ?

The plugin will copy the audio samples around, but the time needed for that should be negligible.

HTH
Clemens

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw

Multi device for 2 C-Ports... More help needed

Thanks for the help so far. I've done that but when I start up jack it works for about 5 - 10 seconds then says the jack watchdog times out and stops the server. During the few seconds it is working I checked in the connections tab and there are only 2 ins and 2 outs. Do I need to make any alterations to the file?

Here is the file I have currently:

pcm.cport_a {
type hw
card 0 # change the card numbers as appropriate
device 0
}
pcm.cport_b {
type hw
card 1
device 0
}

pcm.playback20 {
	type multi
	slaves.a { pcm cport_a channels 10 }
	slaves.b { pcm cport_b channels 10 }
	bindings [
		{ slave a channel 0 }
		{ slave a channel 1 }
		{ slave a channel 2 }
		{ slave a channel 3 }
		{ slave a channel 4 }
		{ slave a channel 5 }
		{ slave a channel 6 }
		{ slave a channel 7 }
		{ slave a channel 8 }
		{ slave a channel 9 }
		{ slave b channel 0 }
		{ slave b channel 1 }
		{ slave b channel 2 }
		{ slave b channel 3 }
		{ slave b channel 4 }
		{ slave b channel 5 }
		{ slave b channel 6 }
		{ slave b channel 7 }
		{ slave b channel 8 }
		{ slave b channel 9 }
	]
}
pcm.capture24 {
	type multi
	slaves.a { pcm cport_a channels 12 }
	slaves.b { pcm cport_b channels 12 }
	bindings [
		{ slave a channel 0 }
		{ slave a channel 1 }
		{ slave a channel 2 }
		{ slave a channel 3 }
		{ slave a channel 4 }
		{ slave a channel 5 }
		{ slave a channel 6 }
		{ slave a channel 7 }
		{ slave a channel 8 }
		{ slave a channel 9 }
		{ slave a channel 10 }
		{ slave a channel 11 }
		{ slave b channel 0 }
		{ slave b channel 1 }
		{ slave b channel 2 }
		{ slave b channel 3 }
		{ slave b channel 4 }
		{ slave b channel 5 }
		{ slave b channel 6 }
		{ slave b channel 7 }
		{ slave b channel 8 }
		{ slave b channel 9 }
		{ slave b channel 10 }
		{ slave b channel 11 }
	]
}
pcm.both {
	type plug
	slave.pcm {
		type asym
		playback.pcm playback20
		capture.pcm capture24
	}
}

Cheers,
Geoff.

Signature · 12 lines
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.0 - Release Date: 4/29/2005
 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20