dmix works but aliased dmixer does not

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

 



Hello,

I have a simple, functional .asoundrc file, which directs all out output directly to "dmix".  This good .asoundrc file contains:
pcm.!default {
    type plug
    slave.pcm "dmix"
}
pcm.dsp0 {
    type plug
    slave.pcm "dmix"
}
ctl.mixer0 {
    type hw
    card 0
}

Using this, I can "aplay" sounds very easily.  If I try to make a simple alias of dmix, call it dmixer, I get the following errors in aplay:
ALSA lib pcm_direct.c:980:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:660: audio open error: Resource temporarily unavailable
This second .asoundrc file looks like:
pcm.dmixed {
    type dmix
    ipc_key 313
    slave.pcm "hw:0"
}
pcm.!default {
    type plug
    slave.pcm "dmixed"
}
pcm.dsp0 {
    type plug
    slave.pcm "dmixed"
}
ctl.mixer0 {
    type hw
    card 0
}
What is the functional difference between these two .asoundrc files? Why does the first one work and the second one does not?

Many thanks!

Trevor
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
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