All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sebastian H." <vand2@gmx.de>
To: alsa-devel@alsa-project.org
Subject: Re: open sound device from asound.conf
Date: Fri, 23 Jul 2010 12:12:41 +0200	[thread overview]
Message-ID: <4C496B19.8020707@gmx.de> (raw)
In-Reply-To: <201007231143.21344.p.lukac@emtest.sk>

>>> I want open sound device from /etc/asound.conf with API
>>> snd_pcm_open() but unsuccessfull. As name i'm used:
>>
>> Did you try to open "default", "output" or "dsp0" since these are the
>> names of your pcm defines?
> 
> thanks for reply...
> Yes it works..(device is open) but i don't want open device with "hard coded" 
> name because this name can be changed..I want to use iterations

I'm just a user but I guess you would have to parse the pcm subsection
of the Alsa configuration tree with the snd_config_* functions.

http://www.alsa-project.org/alsa-doc/alsa-lib/group___config.html

Sebastian

  reply	other threads:[~2010-07-23 10:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23  9:12 open sound device from asound.conf Peter Lukac
2010-07-23  9:26 ` Sebastian H.
2010-07-23  9:43   ` Peter Lukac
2010-07-23 10:12     ` Sebastian H. [this message]
2010-07-23 11:30       ` Raymond Yau

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=4C496B19.8020707@gmx.de \
    --to=vand2@gmx.de \
    --cc=alsa-devel@alsa-project.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.