From patchwork Fri Aug 28 18:06:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 32390 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id E5613B7C1A for ; Sat, 29 Aug 2009 04:13:29 +1000 (EST) Received: from localhost ([127.0.0.1]:43748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh5x1-000143-2h for incoming@patchwork.ozlabs.org; Fri, 28 Aug 2009 14:13:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh5tL-0008Vs-Ui for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:09:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh5tG-0008TW-2f for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:09:38 -0400 Received: from [199.232.76.173] (port=46616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh5tF-0008TN-Ve for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:09:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1567) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mh5tF-0000Jy-Gi for qemu-devel@nongnu.org; Fri, 28 Aug 2009 14:09:33 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7SI9Qc2017679; Fri, 28 Aug 2009 14:09:27 -0400 Received: from localhost.localdomain (vpn2-8-222.ams2.redhat.com [10.36.8.222]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7SI9HOw003911; Fri, 28 Aug 2009 14:09:25 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Fri, 28 Aug 2009 20:06:52 +0200 Message-Id: <8e2c4f54f161f2b6a4babfb0f4cb1a10a85dc089.1251482708.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Subject: [Qemu-devel] [PATCH 5/6] audio: s/INT16/int16_t X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- hw/fmopl.c | 4 ++-- hw/fmopl.h | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/fmopl.c b/hw/fmopl.c index 1bec9d4..5e37ad9 100644 --- a/hw/fmopl.c +++ b/hw/fmopl.c @@ -1038,7 +1038,7 @@ static void OPL_UnLockTable(void) /*******************************************************************************/ /* ---------- update one of chip ----------- */ -void YM3812UpdateOne(FM_OPL *OPL, INT16 *buffer, int length) +void YM3812UpdateOne(FM_OPL *OPL, int16_t *buffer, int length) { int i; int data; @@ -1099,7 +1099,7 @@ void YM3812UpdateOne(FM_OPL *OPL, INT16 *buffer, int length) #if BUILD_Y8950 -void Y8950UpdateOne(FM_OPL *OPL, INT16 *buffer, int length) +void Y8950UpdateOne(FM_OPL *OPL, int16_t *buffer, int length) { int i; int data; diff --git a/hw/fmopl.h b/hw/fmopl.h index 2e808cb..06a7d26 100644 --- a/hw/fmopl.h +++ b/hw/fmopl.h @@ -15,12 +15,11 @@ /* compiler dependence */ #ifndef OSD_CPU_H #define OSD_CPU_H -typedef signed short INT16; /* signed 16bit */ typedef signed int INT32; /* signed 32bit */ #endif #if (OPL_OUTPUT_BIT==16) -typedef INT16 OPLSAMPLE; +typedef int16_t OPLSAMPLE; #endif #if (OPL_OUTPUT_BIT==8) typedef unsigned char OPLSAMPLE; @@ -165,8 +164,8 @@ unsigned char OPLRead(FM_OPL *OPL,int a); int OPLTimerOver(FM_OPL *OPL,int c); /* YM3626/YM3812 local section */ -void YM3812UpdateOne(FM_OPL *OPL, INT16 *buffer, int length); +void YM3812UpdateOne(FM_OPL *OPL, int16_t *buffer, int length); -void Y8950UpdateOne(FM_OPL *OPL, INT16 *buffer, int length); +void Y8950UpdateOne(FM_OPL *OPL, int16_t *buffer, int length); #endif