From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zaiut-00012n-6Z for qemu-devel@nongnu.org; Sat, 12 Sep 2015 07:24:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zaiup-00006C-UG for qemu-devel@nongnu.org; Sat, 12 Sep 2015 07:24:23 -0400 Received: from mailout05.t-online.de ([194.25.134.82]:56889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zaiup-000065-Ns for qemu-devel@nongnu.org; Sat, 12 Sep 2015 07:24:19 -0400 From: =?UTF-8?Q?Volker_R=c3=bcmelin?= References: <55F3259D.3000309@t-online.de> Message-ID: <55F40B4C.5000101@t-online.de> Date: Sat, 12 Sep 2015 13:23:56 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] pulseaudio: reduce 24s recording latency List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Cc: =?UTF-8?B?S8WRdsOhZ8OzLCBab2x0w6Fu?= , QEMU , Gerd Hoffmann Hi, Am 12.09.2015 um 01:22 schrieb Marc-Andr=C3=A9 Lureau: >> Current code doesn't provide pulseaudio buffer attributes for >> recording. Without buffer attributes pulseaudio uses a default >> buffer of 4MB. 4MB is approximately 24s 16bit stereo audio >> data at 44.1kHz. > Why isn't the buffer processed as soon as some data is available? > > On start up qemu opens a connection to pulseaudio in function=20 qpa_init_in and pulseaudio immediately starts recording to the 4MB=20 ringbuffer. The qemu guest, Windows 8.1 in my case, doesn't consume that=20 data if there is no process listening on the audio interface. Now if the=20 guest starts recording, it will see audio data which was recorded 24s ago= . Regards, Volker