From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: "Ronald S. Bultje" <R.S.Bultje@students.uu.nl>
Cc: alsa-devel@lists.sf.net
Subject: Re: snd_pcm_delay() bug
Date: Sun, 16 May 2004 03:06:35 +0100 [thread overview]
Message-ID: <40A6CCAB.1010907@superbug.demon.co.uk> (raw)
In-Reply-To: <1084648674.15902.0.camel@shrek.bitfreak.net>
Ronald S. Bultje wrote:
> Hi,
>
> for both my ALI 5451 and my Audigy 2 NX, snd_pcm_delay() sometimes
> returns (in the second argument pointer) ridiculously high values in the
> range of 2^32/bytes_per_sample (in my case, 16bitLE/stereo, that comes
> down to roughly 1,1E9). I'm guessing there's some kind of
> signed/unsigned or 32/64bit integer bug in this function? Is this a
> known bug? Is there a fix?
>
> Ronald
>
after calling snd_pcm_delay(), call snd_pcm_state() and make sure it is
in RUNNING state, otherwise, values returned from snd_pcm_delay() are
meaningless.
Cheers
James
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
next prev parent reply other threads:[~2004-05-16 2:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-15 19:17 snd_pcm_delay() bug Ronald S. Bultje
2004-05-16 2:06 ` James Courtier-Dutton [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-05-15 18:46 Ronald S. Bultje
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=40A6CCAB.1010907@superbug.demon.co.uk \
--to=james@superbug.demon.co.uk \
--cc=R.S.Bultje@students.uu.nl \
--cc=alsa-devel@lists.sf.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.