From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48056 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pcn3J-000079-NQ for qemu-devel@nongnu.org; Tue, 11 Jan 2011 17:50:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pcn3I-00042n-Q5 for qemu-devel@nongnu.org; Tue, 11 Jan 2011 17:50:57 -0500 Received: from mail.serverraum.org ([78.47.150.89]:47959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pcn3I-00042E-LF for qemu-devel@nongnu.org; Tue, 11 Jan 2011 17:50:56 -0500 From: Michael Walle Date: Tue, 11 Jan 2011 23:50:55 +0100 References: <4D2B6F8B.5080302@web.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101112350.55791.michael@walle.cc> Subject: [Qemu-devel] Re: [PATCH] audio: split sample conversion and volumemixing List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Schildbach, Wolfgang" Cc: Jan Kiszka , qemu-devel@nongnu.org Hi Wolfgang, > The fixed point path for scaling in mixeng_volume() seems to be under by > a factor of two, IMHO. The right shift should be by 31, not 32. (Because > the volume, which I assume is a signed 32 bit integer, can be 0.5 at > most). I must admit i just copied the shift from the original define. But the volume and the samples are signed 64bit values. @malc: any comments on this? > Does the code work with FLOAT_MIXENG undefined? At least for my input voice, it works with integer arithmetic. -- Michael