All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Glenn Maynard <glenn@zewt.org>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: HW mix
Date: Tue, 19 Apr 2005 10:14:58 +0200	[thread overview]
Message-ID: <s5his2jchdp.wl@alsa2.suse.de> (raw)
In-Reply-To: <20050419060647.GG6018@zewt.org>

At Tue, 19 Apr 2005 02:06:47 -0400,
Glenn Maynard wrote:
> 
> On Mon, Apr 18, 2005 at 12:06:54PM +0200, Jaroslav Kysela wrote:
> > On Mon, 18 Apr 2005, Clemens Ladisch wrote:
> > 
> > > Dino wrote:
> > > >    i want to mix some pcm streams using hardware (where possible). One process
> > > > with some thread witch want to play with one device (hw:0,0). Actually i simply
> > > > open the device as it can (32 at max for me) with snd_pcm_open() and hw:0,0 as
> > > > the device. It's seems to work but i don't know if it's the rigth way.
> > > 
> > > "hw:0,0" will fail if another program has already opened it.
> > > Use "hw:0" which instructs ALSA to open the first available subdevice.
> > 
> > Nope, hw:0,0 is correct (CARD,DEVICE). You meant probably hw:0,0,0 
> > (CARD,DEVICE,SUBDEVICE).
> 
> Is there anything wrong with using "hw:0" instead of "hw:0,0", or are they
> equivalent?  It's what I've always used, without issue.

"hw:0" is equal with "hw:0,0", but not with "hw:0,0,0".  The default
subdevice argument is -1, i.e. "hw:0,0,-1".  The -1 means the
auto-allocation as described above.  When you pass 0 explicitly there,
only the substream 0 is opened, and failed if it's already occupied.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728

      reply	other threads:[~2005-04-19  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1DNSGJ-00024N-Di@externalmx-1.sourceforge.net>
2005-04-18  9:46 ` HW mix Dino
2005-04-18  9:57   ` Clemens Ladisch
2005-04-18 10:06     ` Jaroslav Kysela
2005-04-19  6:06       ` Glenn Maynard
2005-04-19  8:14         ` Takashi Iwai [this message]

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=s5his2jchdp.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=glenn@zewt.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.