[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] audio: s/INT16/int16_t
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 5/6] audio: s/INT16/int16_t |
Date: |
Fri, 28 Aug 2009 20:06:52 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
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
--
1.6.2.5
- [Qemu-devel] [PATCH 0/6] Bring adlib to the wonderful world of <stdint.h>, Juan Quintela, 2009/08/28
- [Qemu-devel] [PATCH 6/6] audio: s/INT32/int32_t, Juan Quintela, 2009/08/28
- [Qemu-devel] [PATCH 1/6] audio: Nothing uses UINT16, Juan Quintela, 2009/08/28
- [Qemu-devel] [PATCH 3/6] audio: s/UINT32/uint32_t, Juan Quintela, 2009/08/28
- [Qemu-devel] [PATCH 5/6] audio: s/INT16/int16_t,
Juan Quintela <=
- [Qemu-devel] [PATCH 2/6] audio: s/UINT8/uint8_t, Juan Quintela, 2009/08/28
- [Qemu-devel] [PATCH 4/6] audio: Nothing uses INT8, Juan Quintela, 2009/08/28
- [Qemu-devel] Re: [PATCH 0/6] Bring adlib to the wonderful world of <stdint.h>, malc, 2009/08/28