Received: from eggs.gnu.org ([208.118.235.92]:51447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7EFv-00057f-Ag for qemu-devel@nongnu.org; Mon, 12 Mar 2012 19:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7EFt-0007zu-7L for qemu-devel@nongnu.org; Mon, 12 Mar 2012 19:02:18 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:64530 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7E6J-0006Cx-Vq for qemu-devel@nongnu.org; Mon, 12 Mar 2012 18:52:24 -0400 Date: Tue, 13 Mar 2012 02:52:20 +0400 (MSK) From: malc In-Reply-To: Message-ID: References: <1331578211-18232-1-git-send-email-marcandre.lureau@redhat.com> <1331578211-18232-4-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 03/11] audio: use a nominal volume of UINT_MAX List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Marc-Andr=E9_Lureau?= Cc: =?ISO-8859-15?Q?Marc-Andr=E9_Lureau?= , dnb@redhat.com, dlaor@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com On Mon, 12 Mar 2012, Marc-Andr? Lureau wrote: > On Mon, Mar 12, 2012 at 10:42 PM, malc wrote: > > nominal_volume.[lr] is int64_t... i don't get where you take this ^32 > > from. > > from where it is defined, audio/audio.c: > > const struct mixeng_volume nominal_volume = { > .mute = 0, > #ifdef FLOAT_MIXENG > .r = 1.0, > .l = 1.0, > #else > .r = 1ULL << 32, > .l = 1ULL << 32, > #endif > }; > 1 << 32 = 1.0 in 64(32.32) fixed point... the type of l/r is int64_t -- mailto:av1474@comtv.ru