From: Takashi Iwai <tiwai@suse.de>
To: Stas Sergeev <stsp@aknet.ru>
Cc: alsa-devel@alsa-project.org
Subject: Re: underruns and strange code in pcm_rate.c
Date: Thu, 08 Nov 2007 06:38:44 +0100 [thread overview]
Message-ID: <s5hd4ulthy3.wl%tiwai@suse.de> (raw)
In-Reply-To: <4732C455.7040503@aknet.ru>
At Thu, 08 Nov 2007 11:09:57 +0300,
Stas Sergeev wrote:
>
> Hello.
>
> Takashi Iwai wrote:
> > I'm concerned much because I cannot reproduce the bug here (underrun)
> > in the practical use even with the same application and driver.
> Have you already tried my asound.conf?
> Also, I use the 22050Hz ogg file for
> testing - maybe that makes some difference,
> so please try the 22050Hz ogg file.
> And I explicitly tell "ogg123 -d alsa09",
> or it will apply to some sound server.
Yeah I've seen the problem, but as I wrote, it's basically because you
use periods=2 and unaligned sample rates. So, of course, it doesn't
work.
For example, set
slave.periods 3
slave.period_size 4096
then you'll hear the improvement, I guess.
> > cannot reproduce the bug practically but only you do.
> No, its not only me. As I already
> said, I've got a positive reply from
> the guy saying that it fixes
> portaudio+espeak. I can also try
> mailing the guy that raised that
> problem here before. But unfortunately
> people prefer to mail privately,
> so you'll have to beleive me on
> the other's feedback.
"You" can be plural :)
> > With a test
> > case, we both will be able to check in detail. OK?
> OK, but first please try my asound.conf
> with 22050Hz ogg, and maybe that will
> rescue me from writing a test-case which
> won't work on your system most probably
> anyway...
A testcase is always a good thing. At least, it helps to understand
and spot the problem very much. This is awfully important.
Sometimes (like this case), more useful than a patch.
If it can be easily reproducible via only apps included in alsa-utils,
then it's fine. We have the known code logic and can trace the flow.
But, when the thing goes through a different layer and a different
app, it's pretty hard to follow.
thanks,
Takashi
next prev parent reply other threads:[~2007-11-08 8:49 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 23:48 underruns and strange code in pcm_rate.c (and patch) Stas Sergeev
2007-11-06 11:29 ` Takashi Iwai
2007-11-06 14:47 ` James Courtier-Dutton
2007-11-06 17:14 ` Stas Sergeev
2007-11-07 11:28 ` Takashi Iwai
2007-11-07 10:40 ` Takashi Iwai
2007-11-06 16:10 ` Stas Sergeev
2007-11-07 10:54 ` Takashi Iwai
2007-11-07 17:16 ` underruns and strange code in pcm_rate.c Stas Sergeev
2007-11-07 14:23 ` Takashi Iwai
2007-11-07 18:52 ` Stas Sergeev
2007-11-08 3:36 ` Takashi Iwai
2007-11-08 8:09 ` Stas Sergeev
2007-11-08 5:38 ` Takashi Iwai [this message]
2007-11-08 9:05 ` Stas Sergeev
2007-11-08 6:17 ` Takashi Iwai
2007-11-08 18:34 ` Stas Sergeev
2007-11-09 16:20 ` Timur Tabi
2007-11-09 18:17 ` Stas Sergeev
2007-11-09 19:52 ` Timur Tabi
2007-11-09 20:00 ` Stas Sergeev
2007-11-09 20:06 ` Timur Tabi
2007-11-09 20:11 ` Lee Revell
2007-11-09 20:16 ` Timur Tabi
2007-11-09 20:30 ` Lee Revell
2007-11-09 20:33 ` Timur Tabi
2007-11-09 21:37 ` Lee Revell
2007-11-09 22:52 ` Stas Sergeev
2007-11-09 22:53 ` Timur Tabi
2007-11-12 12:12 ` Clemens Ladisch
2007-11-12 15:56 ` Timur Tabi
2008-01-31 20:49 ` Timur Tabi
2008-02-01 12:32 ` Takashi Iwai
2008-02-01 14:46 ` Timur Tabi
2008-02-01 15:07 ` Takashi Iwai
2008-02-01 15:18 ` Timur Tabi
2008-02-01 15:27 ` Takashi Iwai
2008-02-01 16:00 ` Timur Tabi
2007-11-07 18:40 ` underruns and strange code in pcm_rate.c (and patch) Stas Sergeev
2007-11-08 4:42 ` Takashi Iwai
2007-11-08 8:27 ` Stas Sergeev
2007-11-08 5:54 ` Takashi Iwai
2007-11-08 9:13 ` Stas Sergeev
2007-11-08 6:25 ` Takashi Iwai
2007-11-08 14:10 ` Alexander E. Patrakov
2007-11-06 13:56 ` Stas Sergeev
2007-11-08 20:06 ` Timur Tabi
2007-11-08 22:01 ` Timur Tabi
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=s5hd4ulthy3.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=stsp@aknet.ru \
/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.