From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mats Lindestam Subject: Alsa-loopback Date: Fri, 10 May 2019 07:15:46 +0000 Message-ID: <1557472546239.42034@axis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from bastet.se.axis.com (bastet.se.axis.com [195.60.68.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5B408F8073C for ; Fri, 10 May 2019 09:15:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id AB7B2184D9 for ; Fri, 10 May 2019 09:15:47 +0200 (CEST) Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id dzidXKaBPA3C for ; Fri, 10 May 2019 09:15:46 +0200 (CEST) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id D2B8618577 for ; Fri, 10 May 2019 09:15:46 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C064C1A072 for ; Fri, 10 May 2019 09:15:46 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B57281A06F for ; Fri, 10 May 2019 09:15:46 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP for ; Fri, 10 May 2019 09:15:46 +0200 (CEST) Received: from XBOX04.axis.com (xbox04.axis.com [10.0.5.18]) by thoth.se.axis.com (Postfix) with ESMTP id A9E6229C6 for ; Fri, 10 May 2019 09:15:46 +0200 (CEST) Content-Language: sv-SE List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org Hi, I am new to Alsa and I have been told that there is some kind of buffer/queue, in Alsa-loopback, that regulates when 'sound-buffers' is dropped. What I would like to achieve is make the buffer/queue larger (500 ms). >>From what I have heard is that it should be possible to configure the buffer/queue, in Alsa-loopback, via the /etc/asound.conf configuration file. It seems that the parameters period_time, period_size, buffer_time, buffer_size & rate are important to achieve what I want. I haven't found any information on what these parameters do and how or if they are used in conjunction with each other. Here is my asound.conf file: # cat /etc/asound.conf pcm_slave.aloopcommon { pcm "hw:Loopback,0,0" ... rate 16000 period_time 64000 buffer_time 512000 } pcm.!audiosource0 { type dsnoop ... slave aloopcommon ... } Is there somewhere where these parameters are explained and how they interact? BR /Mats ?