From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Click after draining Date: Wed, 20 Oct 2004 11:38:39 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Giuliano Pochini Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 20 Oct 2004 10:35:34 +0200 (CEST), Giuliano Pochini wrote: > > >> Anyway, _fill_silence() can still overflow. > > > > In your case, yes. But it's exceptional. > > No, it also happens with you example when > period_offs+period_len > buffer_size: > > N=3.5: > > first round: > 0000000011111111222222223333 > > 2nd: > 3333444444445555555566666666 > .... > > fill_silence(per=3, period_len) overflows. Oh, yeah, you're right. This has to be handled correctly in fill_silence(). Takashi ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl