From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Mohr Subject: Re: Docu:: Alsa Audio API:: A minimal capture program Date: Mon, 9 Feb 2004 18:18:33 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <200402091818.33864.tmohr@s.netic.de> References: <200402090119.00259.tmohr@s.netic.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jaroslav Kysela Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi, > You've made this stupid bug: > > data = (unsigned char *)calloc(SAMPLES*4, 0); > > should be: > > data = (unsigned char *)calloc(periodsize*4, 1); thank you so very much for that hint, that was the problem. Best regards, Torsten. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn