From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Phgia-0001g3-1S for qemu-devel@nongnu.org; Tue, 25 Jan 2011 06:05:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhgiY-0005Am-Cv for qemu-devel@nongnu.org; Tue, 25 Jan 2011 06:05:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhgiY-00059g-3L for qemu-devel@nongnu.org; Tue, 25 Jan 2011 06:05:46 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0PB5j0M021974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 Jan 2011 06:05:45 -0500 Received: from rincewind.home.kraxel.org (vpn1-6-92.ams2.redhat.com [10.36.6.92]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0PB5hVu004021 for ; Tue, 25 Jan 2011 06:05:44 -0500 Message-ID: <4D3EAE87.7040908@redhat.com> Date: Tue, 25 Jan 2011 12:05:43 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RESEND PATCH 2/3] pulseaudio: setup buffer attrs References: <1295903266-6458-1-git-send-email-kraxel@redhat.com> <1295903266-6458-2-git-send-email-kraxel@redhat.com> <20110125092020.GB5940@playa.tlv.redhat.com> In-Reply-To: <20110125092020.GB5940@playa.tlv.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, > What's the default buffer size? Don't know the exact number, but pulse's default buffer size is quite big by design. Which is fine for most apps (such as mp3 players) where loading more sound data into the buffer every second or so is ok. It doesn't work very well for sound card emulation though. And it doesn't work at all if your guest happens to use a ring buffer which holds sound data for only 20ms. > Is there any reason to query this on startup > somewhere instead of hard coding it? No. The pulse default values will never ever work for qemu's low latency requirements. cheers, Gerd