From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: alsa-lib resamping error Date: Thu, 23 Jan 2003 17:20:02 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <200301221738.h0MHcVq22269@linuxaudiosystems.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200301221738.h0MHcVq22269@linuxaudiosystems.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Paul Davis Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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 :) Takashi ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com