Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2010-02-03 Thread Monty Montgomery
On Wed, Feb 3, 2010 at 9:14 PM, Morita Sho wrote: > I have built libao revision 16861 and installed it to /usr/local. [...] > This executable works properly. No noise at end of the playback. Good. I was hoping and expecting this would work. > I also tested with mmap by the following modificati

Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2010-02-03 Thread Morita Sho
Thank you so much for your detailed explanation! I have built libao revision 16861 and installed it to /usr/local. Then I recompiled reproduce_libao_bug.c with the following command: % gcc -Wall -I/usr/local/include -L/usr/local/lib -lao -ldl -lm -o reproduce_libao_bug reproduce_libao_bug.c % l

Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2010-01-31 Thread Monty Montgomery
Morita, I've committed a test fix for the VIA end-of-playback click problem to xiph.org's libao SVN in revision 16861. This is using a strategy different than the one you suggested and I'm interested to see if it works: svn co http://svn.xiph.org/trunk/ao -r 16861 It will build and install in /

Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2010-01-29 Thread Monty Montgomery
> I have tested reproduce_libao_bug.c today, and the problem is still > reproducible for me. > > Here is the kernel version. > % uname -a > Linux debian 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 i686 > GNU/Linux > > Here is an output of lspci -vv (whole log is attached as named lspci-v

Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2010-01-28 Thread Monty Montgomery
Your analysis is not quite correct; ALSA should absolutely not be playing more samples than it receives regardless of period/hardware buffer alignment. The only way this could happen is if the pipeline is set to 'never underrun' mode and the playback cursor passes the end of playback before a sto

Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2008-01-27 Thread Morita Sho
Oops! I missed to attach a program to reproduce. Sorry. -- Morita Sho <[EMAIL PROTECTED]> /* * This program reproduces libao bug. * * Plays 500 hz sine wave about 0.4 seconds (PERIOD_SIZE * 2), and 800 hz sine wave about 0.4 seconds (PERIOD_SIZE * 2 + 1). * The final period only contains 1 fr

Bug#462753: libao2: need to clear the final period in alsa driver before closing it.

2008-01-27 Thread Morita Sho
Package: libao2 Version: 0.8.8-3 Severity: normal Tags: patch Hi, I found a problem in libao while investigating a bug in SoX. When I play a sound clip with following command, I heard a noise at end of playback. $ sox /usr/share/sounds/KDE_Beep_Ahem.wav -t ao default (Note: This not alway