Using the 'multi' plugin

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

 



Hello. 

I was wondering if someone might be able to help me with the setup I am
trying to achieve. I spent the last 2 days reading all kinds of ALSA
documentation, so I have some understanding of how things work, but
looks like I still need help.

GOAL: Create a virtual ALSA sound device that will send the sound to 2
separate sound cards. 

Just in case, here is a link to my alsa-info output:
http://www.alsa-project.org/db/?f=56263629b834fb330ba729b3e3074bd9daa3ec20

Here is the important part though:
--------------
 0 [M2496          ]: ICE1712 - M Audio Audiophile 24/96
                      M Audio Audiophile 24/96 at 0xa800, irq 22
 1 [nForce2        ]: NFORCE - NVidia nForce2
                      NVidia nForce2 with ALC650F at 0xe8080000, irq 17

--------------
pcm.nforce "plughw:nForce2,0"

pcm.audiophile "plughw:M2496,0"

pcm.both {
	type plug
	slave {
		pcm multi
	}
	ttable.0.0 1.0
	ttable.1.1 1.0
	ttable.0.2 1.0
	ttable.1.3 1.0
}

pcm.multi {
	type multi
	slaves.a {
		pcm "audiophile"
		channels 2
	}
	slaves.b {
		pcm "nforce"
		channels 2
	}
	bindings.0.slave a
	bindings.0.channel 0
	bindings.1.slave a
	bindings.1.channel 1
	bindings.2.slave b
	bindings.2.channel 0
	bindings.3.slave b
	bindings.3.channel 1
}
--------------

The sound cards work individually. i.e 
 aplay -Dnforce test.wav
 aplay -Daudiophile test.wav

both work.

I thought that 'aplay -Dboth test.wav' would do what I want with the
above config, but I only get sound on the nforce card.

I tried to simplify like this:
--------------
pcm.multi {
	type multi
	slaves.a {
		pcm "audiophile"
		channels 2
	}
	bindings.0.slave a
	bindings.0.channel 0
	bindings.1.slave a
	bindings.1.channel 1
}
--------------
'aplay -Dmulti test.wav' still produces no sound. However, if I do the
same to 'nforce', it works.

Conclusion: 'multi' plugin is doing something to the sound that somehow
makes it unplayable by my Audiophile 2496 card (even though it's wrapped
with 'plug'!)


But why? What is going wrong here? What steps can I take to get more
info about what is going on?


I am still an ALSA noob so *any* advice would be greatly appreciated.
Thanks.



Val



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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