From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Noise in begnning of alsa application Date: Mon, 21 Jan 2019 21:29:57 +0100 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 mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 0E5FE2667E7 for ; Mon, 21 Jan 2019 21:29:57 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Chakravarthi Pradeep Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 21 Jan 2019 18:46:44 +0100, Chakravarthi Pradeep wrote: > > On Wed, Jan 16, 2019 at 5:07 PM Chakravarthi Pradeep wrote: > > > > I have ALSA driver for capture device which works fine with VLC. when > > I try to capture and render using own application having some issues. > > When I start play, it has some noise in beginning and audio is > > discontinuous in between. Discontinuous means, some audio frame are > > getting dropped in between. cut cut sound for sine wave. I have tried > > snd_pcm_drop and snd_pcm_drain but no use. Kindly suggest how to > > remove the starting noise in ALSA. > > > > For audio rendering i'm using below application. > > I'm sharing reference render application which my own application is > > built. > > > https://github.com/bear24rw/alsa-utils/blob/master/aplay/aplay.c Such behavior is strongly depending on the hardware and the driver code, so it's almost impossible to debug without the detailed hardware and kernel information... thanks, Takashi