From: James Courtier-Dutton <James@superbug.co.uk>
To: Marc Brooker <marcbrooker@gmail.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Sample Rate Conversion Quality in ALSA
Date: Mon, 21 Aug 2006 13:45:46 +0100 [thread overview]
Message-ID: <44E9AAFA.2060400@superbug.co.uk> (raw)
In-Reply-To: <b5ee41f40608210316t562c803eye73701c75904627@mail.gmail.com>
Marc Brooker wrote:
> Hello,
>
> I am new to the ALSA development, and would be interested in
> contributing in future.
>
> After installing the latest Ubuntu on my home machine, I noticed that
> dmix is enabled by default. This is a very good move in my opinion, as
> it makes Linux sound much more transparent to the end user. However, I
> was concerned with the quality of the mixing algorithm and sample rate
> conversion used by dmix.
>
>
> Cheers
>
> Marc Brooker
>
The problem is actually far more complicated than you described. A fair
amount of ALSA core will have to be modified to really fix the problem.
The main problem is the buffer and period sized as they pass through dmix.
For example, if the sound card hardware is running with 1024 samples per
period at 48000, and an application wished to use a sample rate of
44100, the application should really get 940.8 samples per period. That
is nor possible, so the application gets 940. dmix then tries to convert
940 samples to 1024 samples ready for the hardware. So, even if the dmix
algorithm used the super high quality sample rate conversion function,
the actual rate change applied would still be slightly off.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next prev parent reply other threads:[~2006-08-21 12:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 10:16 Sample Rate Conversion Quality in ALSA Marc Brooker
2006-08-21 12:45 ` James Courtier-Dutton [this message]
2006-08-21 12:54 ` Takashi Iwai
2006-08-21 15:05 ` Marc Brooker
2006-08-21 15:16 ` Takashi Iwai
2006-08-21 15:59 ` Lee Revell
2006-08-21 16:06 ` Takashi Iwai
2006-08-21 13:02 ` Marc Brooker
2006-08-21 15:03 ` John Rigg
2006-08-21 19:07 ` Marc Brooker
2006-08-21 19:15 ` Lee Revell
2006-08-21 20:16 ` Marc Brooker
2006-08-21 20:15 ` John Rigg
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=44E9AAFA.2060400@superbug.co.uk \
--to=james@superbug.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=marcbrooker@gmail.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 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.