From: Douglas Lopes Pereira Subject: Problems with snd_pcm_writei() function Date: Thu, 22 Oct 2009 15:34:43 -0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-vw0-f197.google.com (mail-vw0-f197.google.com [209.85.212.197]) by alsa0.perex.cz (Postfix) with ESMTP id 8DE09244D7 for ; Thu, 22 Oct 2009 19:34:44 +0200 (CEST) Received: by vws35 with SMTP id 35so3122322vws.16 for ; Thu, 22 Oct 2009 10:34:43 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi, I'm modifying an application that calls snd_pcm_writei() function from libasound2-dev (on verstion 1.0.16-2). I does work. I'm splitting my audio data into 160 bytes buffers but when buffer with different size is passed to that function I hear a noise (like 'Krrr') on my audio device. I tried to add zeroed bytes to complete the buffer but it didn't work. I tried to ignore the last buffer and it worked but with some side effects: No other operation worked properly after that. Please, can anyone help? Thanks in advance. Regards, Douglas