Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Bomers <Florian.Bomers@sun.com>
To: ALSA devel <alsa-devel@lists.sourceforge.net>
Subject: Re: snd_pcm_hw_params_current() ?
Date: Fri, 04 Oct 2002 11:04:23 -0700	[thread overview]
Message-ID: <3D9DD827.B4C02E22@sun.com> (raw)
In-Reply-To: Pine.LNX.4.33.0210041401090.713-100000@pnote.perex-int.cz

Jaroslav Kysela wrote:
> 
> On Thu, 3 Oct 2002, Florian Bomers wrote:
> 
> > Hi,
> >
> > there is snd_pcm_sw_params_current() but not snd_pcm_hw_params_current(). How
> > can I get the current hardware configuration for a given snd_pcm_t handle ? Am I
> > missing something ?
> 
> Hardware parameters must be configured from application all time.

So that means that I need to cache hw params if I ever want to use them again ?
E.g. my app does this:

open(), set hw params, set sw params
free hw params and sw params to save memory

work with the device: start/write/stop/etc.

When I now want to know the buffer size, I would like to obtain the current hw
params which I had set above to the pcm handle.

I understand that I initially need to set hw params to a pcm handle before I
could get current hw params, but once I did that, especially in prepared/running
state, the device has well-defined hw params and why shouldn't people be allowed
to query them ?

Thanks !
Florian

> 
>                                                 Jaroslav
> 
> -----
> Jaroslav Kysela <perex@suse.cz>
> Linux Kernel Sound Maintainer
> ALSA Project  http://www.alsa-project.org
> SuSE Linux    http://www.suse.com
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel

-- 
Florian Bomers
Java Sound
Java Software/Sun Microsystems, Inc.
http://java.sun.com/products/java-media/sound/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2002-10-04 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-04  1:51 snd_pcm_hw_params_current() ? Florian Bomers
2002-10-04 12:01 ` Jaroslav Kysela
2002-10-04 18:04   ` Florian Bomers [this message]
2002-10-08 11:33     ` Takashi Iwai
2002-10-08 19:30       ` Florian Bomers

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=3D9DD827.B4C02E22@sun.com \
    --to=florian.bomers@sun.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox