From: Vincent Meserette <vmeserette@aldebaran-robotics.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: how to link multi plugin to dsnoop ?
Date: Wed, 11 May 2011 15:35:39 +0200 [thread overview]
Message-ID: <BANLkTinPN1Whe-0u53S7MD81a018eZukrQ@mail.gmail.com> (raw)
Hi all,
I would like to allow multiple applications to access the audio inputs and
outputs of my system at same time.
I succeded to make it for the audio outputs by using the dmix plugin, but I
don't know how to do it with the dsnoop plugin because it seems I cannot
link directly the multi plugin to dsnoop.
Here is the error message I have with the /etc/asound.conf file presented
below :
arecord -D"alduplex" -c4 -r48000 -fS16_LE /tmp/test.wav
ALSA lib pcm_direct.c:1490:(_snd_pcm_direct_get_slave_ipc_offset) Invalid
type 'multi' for slave PCM
arecord: main:654: audio open error: Invalid argument
Does someone know how can I route the multi plugin to dsnoop ?
Thanks in advance
My /etc/asound.conf file :
#output device
pcm.AD1989A_outputs{
type hw
card 0
}
pcm.aldmix{
type dmix
ipc_key 1024
ipc_perm 0666
slave{
pcm AD1989A_outputs
}
}
#input device
pcm.4channelsDeinterleaved {
type multi
slaves.a.pcm "hw:0,0,0"
slaves.a.channels 2
slaves.b.pcm "hw:0,0,2"
slaves.b.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
}
pcm.AD1989A_inputs {
type route
slave.pcm "4channelsDeinterleaved"
ttable.0.0 1
ttable.1.1 1
ttable.2.2 1
ttable.3.3 1
}
#4 channels dsnoop (plug-in for capture)
pcm.aldsnoop{
type dsnoop
ipc_key 1025
ipc_perm 0666
slave{
pcm AD1989A_inputs
rate 48000
channels 4
}
}
pcm.alduplex {
type asym
capture.pcm "aldsnoop"
playback.pcm "aldmix"
}
### CTL DEVICES (controls)
ctl.mixer0 {
type hw
card 0
}
next reply other threads:[~2011-05-11 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-11 13:35 Vincent Meserette [this message]
2011-05-11 16:57 ` how to link multi plugin to dsnoop ? Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTinPN1Whe-0u53S7MD81a018eZukrQ@mail.gmail.com \
--to=vmeserette@aldebaran-robotics.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).