All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice Tisserand <Patrice.Tisserand@ircam.fr>
To: Martin Herren <sputnik@on-the-web.ch>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: available sampling rate detection
Date: 11 Feb 2003 10:26:25 +0100	[thread overview]
Message-ID: <1044955585.1415.39.camel@localhost.localdomain> (raw)
In-Reply-To: <20030211085359.24a40185.sputnik@on-the-web.ch>

On Tue, 2003-02-11 at 08:53, Martin Herren wrote:
[..]
> An additional question, what is the correct way to find out all existing cards/buses on a system ? Currently we scan /proc/asound/card?/ for all pcmX[cp]. Is there a better way to do it ?
> 
I think you case use a loop with snd_card_next

from alsa-lib/src/control/card.c
 /**
 * \brief Try to determine the next card.
 * \param rcard pointer to card number
 * \result zero if success, otherwise a negative error code
 *
 * Tries to determine the next card from given card number.
 * If card number is -1, then the first available card is
 * returned. If the result card number is -1, no more cards
 * are available.
 */
int snd_card_next(int *rcard)  

-- 
Patrice Tisserand <Patrice.Tisserand@ircam.fr>
IRCAM



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

  parent reply	other threads:[~2003-02-11  9:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11  7:53 available sampling rate detection Martin Herren
2003-02-11  8:40 ` Takashi Iwai
2003-02-11  9:26 ` Patrice Tisserand [this message]
2003-02-12 18:05   ` Martin Herren

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=1044955585.1415.39.camel@localhost.localdomain \
    --to=patrice.tisserand@ircam.fr \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=sputnik@on-the-web.ch \
    /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.