Help needed: Configuring dmix for Audio2DJ

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

 



Hi,

I am trying to configure my Audio2DJ soundcard. First, I put the following
to ~/.asoundrc as proposed in the Native Instruments forum:

---

pcm.djA { type plug; slave.pcm "hw:Audio2DJ,0,0"; }
pcm.djB { type plug; slave.pcm "hw:Audio2DJ,0,1"; }

pcm.djAB {
type multi

# bind hardware devices
slaves.a.pcm djA
slaves.a.channels 2
slaves.b.pcm djB
slaves.b.channels 2

# bind channels to virtual device
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 configuration works fine, when I run

aplay -D djA test.wav
aplay -D djB test.wav

I hear the sound on the corresponding output. However, I cannot
play two sounds on djA at the same time, because the second call

aplay -D djA test.wav

yields:

aplay: main:608: audio open error: Device or resource busy

So I tried the dmix plugin and appended the following to my ~/.asoundrc:

---

pcm.djAmix {
type plug
slave.pcm "dmixer"
}

pcm.dsp0 {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:Audio2DJ,0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100 #many new cards are 48000 only
}
bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card Audio2DJ
}

---

Now, when I run

aplay -D djAmix test.wav

I get:

ALSA lib pcm_direct.c:909:(snd1_pcm_direct_initialize_slave) requested or auto-format is not available
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:608: audio open error: Invalid argument

Can anybody tell me how to configure Audio2DJ to play several sounds at the
same time on the same output?

Thank you very much for your help!

Fabian
___________________________________________________________
GRATIS für alle WEB.DE Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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