From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REKN7-0003NX-WF for qemu-devel@nongnu.org; Thu, 13 Oct 2011 08:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REKN2-0006gL-6N for qemu-devel@nongnu.org; Thu, 13 Oct 2011 08:26:49 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:51170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REKN2-0006gF-1s for qemu-devel@nongnu.org; Thu, 13 Oct 2011 08:26:44 -0400 Received: by wyh22 with SMTP id 22so1972788wyh.4 for ; Thu, 13 Oct 2011 05:26:43 -0700 (PDT) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" Date: Thu, 13 Oct 2011 14:26:16 +0200 Message-Id: <1318508784-8172-3-git-send-email-marcandre.lureau@redhat.com> In-Reply-To: <1318508784-8172-1-git-send-email-marcandre.lureau@redhat.com> References: <1316621468-32171-1-git-send-email-marcandre.lureau@redhat.com> <1318508784-8172-1-git-send-email-marcandre.lureau@redhat.com> Subject: [Qemu-devel] [PATCH 03/11] audio: use a nominal volume of 1^32-1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , kraxel@redhat.com So we can easily fit it into smaller int. We can just >>16 to fit it into a 16bits volume range for example. --- audio/audio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index f830bb2..33b6c23 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -110,8 +110,8 @@ const struct mixeng_volume nominal_volume = { .r = 1.0, .l = 1.0, #else - .r = 1ULL << 32, - .l = 1ULL << 32, + .r = (1ULL << 32) - 1, + .l = (1ULL << 32) - 1, #endif }; -- 1.7.6.2