From: Lee Revell <rlrevell@joe-job.com>
To: Giuliano Pochini <pochini@denise.shiny.it>
Cc: Timo Steuerwald <timo.steuerwald@gmx.de>,
alsa-devel@lists.sourceforge.net
Subject: Re: list all available devices
Date: Mon, 06 Feb 2006 13:00:49 -0500 [thread overview]
Message-ID: <1139248850.2791.261.camel@mindpipe> (raw)
In-Reply-To: <Pine.LNX.4.58.0602061118060.20834@denise.shiny.it>
On Mon, 2006-02-06 at 11:19 +0100, Giuliano Pochini wrote:
>
> On Mon, 6 Feb 2006, Timo Steuerwald wrote:
>
> > Hi all,
> >
> > can someone point me to the right location where I can find information
> > about listing all available devices in ALSA?
> > A code sample will be also very nice :-)
>
> aplay -l
> arecord -l
Are you sure that's good enough? It does not list the PCMs in a format
useful to the application (like "default", hw:0", "surround51", "dmix"
etc). AFAICT "aplay -l" doesn't give an application enough information
to populate a drop-down list.
This is a problem already for apps like "wengophone" - ALSA does not
provide a sane API for enumerating all usable PCMs so it only lists
"hw:x" PCMS and whatever is directly defined in .asoundrc (but NOT the
PCMs defined under /usr/share/alsa/* - probably it parses .asoundrc
directly, ugh)
Lee
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
next prev parent reply other threads:[~2006-02-06 18:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-06 9:25 list all available devices Timo Steuerwald
2006-02-06 10:19 ` Giuliano Pochini
2006-02-06 10:32 ` Timo Steuerwald
2006-02-06 18:00 ` Lee Revell [this message]
2006-02-06 18:10 ` Timo Steuerwald
2006-02-06 18:13 ` Lee Revell
2006-02-06 18:30 ` Matthias König
2006-02-06 18:58 ` Lee Revell
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=1139248850.2791.261.camel@mindpipe \
--to=rlrevell@joe-job.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pochini@denise.shiny.it \
--cc=timo.steuerwald@gmx.de \
/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