From: "Ákos Maróy" <akos@maroy.hu>
To: alsa-devel@alsa-project.org
Subject: opening a device multiple times?
Date: Wed, 29 Jun 2011 13:47:59 +0200 [thread overview]
Message-ID: <4E0B10EF.60208@maroy.hu> (raw)
Hi,
I'm writing a piece of code that uses ALSA audio devices, where I open
the same output device multiple times, as a simple way to have parallel
audio channels, where I can send audio data to each 'channel' (PCM
handle) simultaneously, and the ALSA layer will mix the audio together.
My experience is that this works with some audio devices (for example,
with a pulse audio - ALSA gateway), but not on some other devices (for
example, on a USB sound device, driven by ALSA). In the latter case,
snd_pcm_open() will refuse to open the audio device multiple times.
I wonder what the generic concept here is - is it generally 'OK' to open
an audio device multiple times? If not, why not? :)
Akos
next reply other threads:[~2011-06-29 11:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-29 11:47 Ákos Maróy [this message]
2011-06-29 12:13 ` opening a device multiple times? James Courtier-Dutton
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=4E0B10EF.60208@maroy.hu \
--to=akos@maroy.hu \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.