From: Takashi Iwai Subject: Re: underrun!!! (at least 0, 249 ms long) was (struct snd_pcm_hardware_t values) Date: Tue, 08 Aug 2006 12:25:24 +0200 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (ns2.suse.de [195.135.220.15]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 76D95161 for ; Tue, 8 Aug 2006 12:25:24 +0200 (MEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Markus Rechberger Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 8 Aug 2006 03:09:43 +0200, Markus Rechberger wrote: > > Ok I managed to get rid of that garbled background noise now I get > underrun messages... > > $ aplay -D hw:2,1 5_5_2006__07_00_59.wav > Playing WAVE '5_5_2006__07_00_59.wav' : Signed 16 bit Little Endian, > Rate 9600 Hz, Mono > underrun!!! (at least 0,271 ms long) > underrun!!! (at least 0,248 ms long) > [...] > > I can hear the sound clearly, but looks like these 200ms cause a choppy sound... > I also tried to add support for this device to snd-usb-audio, but > since this device has no synchronisation packets the driver fails... > Does anyone know what causes such a buffer underrun? For example, the calculation of the current pointer doesn't match with the actual position. > I think it still has something to do with the snd_pcm_hardware_t values... My guess is that the problem is the implementation of pointer callback. > maybe the time will come when I'm not the only one on this ML who > answers my questions.... Maybe you'll get more response if you show your codes more openly... Otherwise it's just a wild guess. Takashi ------------------------------------------------------------------------- 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