Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Paul Davis <paul@linuxaudiosystems.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: alsa-lib resamping error
Date: Mon, 27 Jan 2003 12:38:58 +0100	[thread overview]
Message-ID: <s5hel6yom99.wl@alsa2.suse.de> (raw)
In-Reply-To: <s5h3cnjzvm5.wl@alsa2.suse.de>

At Thu, 23 Jan 2003 17:20:02 +0100,
I wrote:
> 
> At Wed, 22 Jan 2003 12:38:31 -0500,
> Paul Davis wrote:
> > 
> > if you try to play a 22.05kHz stream on hardware that supports 32kHz
> > and 44.1kHz but not 22.05kHz, alsa-lib's plughw layer chooses to use
> > 32kHz and resamples. this seems like an error to me: it would be much
> > better to choose 44.1kHz and do simple integer resampling. that is:
> > the search for the best rate should first try integer multiples and
> > divisors of the desired rate, not the "closest" rate.
> 
> agreed, it would be better.
> 
> but... errm...  changing this in alsa-lib is like going into a big
> labyrinth for me :)

and after a long wandering in the labyrinth, the changes are on cvs
now (both for alsa-driver and alsa-lib).
the new code will try the integer multiples at first.
i hope this works correctly...


Takashi


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

      reply	other threads:[~2003-01-27 11:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22 17:38 alsa-lib resamping error Paul Davis
2003-01-23 16:20 ` Takashi Iwai
2003-01-27 11:38   ` Takashi Iwai [this message]

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=s5hel6yom99.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=paul@linuxaudiosystems.com \
    /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