From: Julien Puydt <jpuydt@free.fr>
To: alsa-devel@lists.sourceforge.net
Subject: Question about getting the name of devices
Date: Wed, 07 Feb 2007 13:22:24 +0100 [thread overview]
Message-ID: <45C9C480.4050402@free.fr> (raw)
Hi,
I'm trying to patch the alsasrc&alsasink gstreamer plugins to be able to
show nice names in user interfaces.
Given a card number, using snd_card_get_name gets me what I want easily.
Unfortunately, that's not what I have available : I just have a
snd_pcm_t*, opened on a char* which may look like "hw:1,0".
I know that I can snd_ctl_open a snd_ctl_t* with "hw:1", then get a
snd_ctl_card_info_t*, on which I can call snd_ctl_card_info_get_card, to
finally be able to call snd_card_get_name (sic).
The problem with this approach (well, apart from the fact that it is
overly complex), is that snd_ctl_open fails if something like "hw:1,0"
is given to it.
Is there a sane and simple way to obtain the name of a card from the
data I have ?
JP
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
reply other threads:[~2007-02-07 12:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=45C9C480.4050402@free.fr \
--to=jpuydt@free.fr \
--cc=alsa-devel@lists.sourceforge.net \
/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.