From: Takashi Iwai <tiwai@suse.de>
To: Giuliano Pochini <pochini@shiny.it>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: pcm interfaces questions
Date: Wed, 26 Mar 2003 10:32:46 +0100 [thread overview]
Message-ID: <s5h4r5qpj5t.wl@alsa2.suse.de> (raw)
In-Reply-To: <XFMail.20030325182413.pochini@shiny.it>
At Tue, 25 Mar 2003 18:24:13 +0100 (CET),
Giuliano Pochini wrote:
>
> snd_pcm_new() has two parameters for the number of substreams
> for playback and capture. Yes, but what does it mean ? If I
> have N playback substreams, can I service N applications that
> use one stream ? Can channels be allocated on demand, to allow
> the user to use 4 xmms or 1 xmms and a dvd player (5.1) at the
> same time ? :)) It's quite useless... I'm just curious.
> Also snd_pcm_new() can create multiple pcm interfaces. SP/DIF
> and ADAT i/o need a pcm instance too, isn't it ?
well, the term "stream" is a bit confusing.
in ALSA, the term "pcm stream" defines the direction of pcm, either
playback or capture. hence, there are at most two streams per pcm
instance.
the "pcm substreams" belong to each pcm stream. when you open a pcm
device, one pcm substream will be used at each time.
snd_pcm_new() takes the argument how many pcm substreams are created
for each pcm stream. you can give more than one here only if the
hardware supports multiple-playback/capture, such as emu10k1.
otherwise, these arguments must be 1 or 0.
for the multiple-playback/capture, each created substream is numbered
from 0 to (N-1). if you open the pcm without specifying the substream
number, the empty substream is searched and assigned to be opened. if
you specify the substream number (e.g. "hw:0,0,2"), the specified
substream is tried for open (the substream #2 in the example).
again, if the HARDWARE supports the multiple open, you can play 4 xmms
simultaneously. if it doesn't, dmix plugin is your friend.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
next prev parent reply other threads:[~2003-03-26 9:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-23 18:31 trigger commands Giuliano Pochini
2003-03-24 9:55 ` Takashi Iwai
2003-03-24 10:48 ` Giuliano Pochini
2003-03-24 11:00 ` Takashi Iwai
2003-03-24 16:10 ` Giuliano Pochini
2003-03-25 17:24 ` pcm interfaces questions Giuliano Pochini
2003-03-25 17:51 ` Paul Davis
2003-03-26 9:32 ` Takashi Iwai [this message]
2003-03-26 14:18 ` Giuliano Pochini
2003-03-26 15:48 ` Paul Davis
2003-03-26 20:32 ` Jaroslav Kysela
[not found] <1048632431.3099.25.camel@Jay>
2003-03-26 10:21 ` Giuliano Pochini
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=s5h4r5qpj5t.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pochini@shiny.it \
/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.