From: Takashi Iwai <tiwai@suse.de>
To: Denis Sbragion <d.sbragion@infotecna.it>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: EWX and SPDIF, can you take a look at this?
Date: Wed, 02 Jul 2003 12:50:46 +0200 [thread overview]
Message-ID: <s5h4r25kxrt.wl@alsa2.suse.de> (raw)
In-Reply-To: <5.1.0.14.1.20030630183626.01e77e60@pop3.infotecna.lcl>
At Mon, 30 Jun 2003 18:49:31 +0200,
Denis Sbragion wrote:
>
> Hello,
>
> may be unrelated or not. I noticed that in aplay.c (0.9.4), at line 818,
> the sample rate setting is obtained with:
>
> rate = hwparams.rate;
> err = snd_pcm_hw_params_set_rate_near(handle, params, &hwparams.rate, 0);
>
> Is it correct to use a reference (&) to set the sample rate?
yes. the API was changed quite ago.
the old API returns the sample rate, while the new API replaces the
resultant rate on the given pointer.
ATM, as default still the old API is chosen unless you define
ALSA_PCM_NEW_HW_PARAMS_API. you shouldn't assume this in future,
though. it's recommended to write with the new API.
in the reference manual, only the new API is described, btw.
Takashi
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
next prev parent reply other threads:[~2003-07-02 10:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-30 16:49 EWX and SPDIF, can you take a look at this? Denis Sbragion
2003-07-02 10:50 ` Takashi Iwai [this message]
2003-07-02 13:18 ` Denis Sbragion
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=s5h4r25kxrt.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=d.sbragion@infotecna.it \
/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.