On Fri, 14 Sep 2001, Duncan Sands wrote:
> The following patch fixes the following problem: sound drowned
> out by loud pulses when recording via oss-emulation if doing
> channel reduction (in my case, 2 channels -> 1 channel).
> There were three mistakes in the code:
> (1) A typo (src_channels rather than src_channel) in route.c.
> This was not serious, it meant that two copies of the first
> channel was used for reduction rather than one copy of each
> channel.
> (2) A thinko (just one element rather than all of an array copied)
> in route.c. This meant that incorrect weights were being used
> for channel reduction, causing junk to be output. My fix may
> not be in accordance with whatever your coding style is.
> (3) A typo (src_format rather than dst_format) in pcm_oss.c.
> This meant that too few frames were being read, leaving the
> end of the buffer filled with junk.
Thanks. Applied.
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
SuSE Linux http://www.suse.com
ALSA project http://www.alsa-project.org
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel