[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 13/30] audio: remove INT16
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 13/30] audio: remove INT16 |
Date: |
Thu, 4 May 2017 09:17:54 +0200 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/audio/fmopl.h | 5 ++---
hw/audio/fmopl.c | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h
index bede6717ae..0bc3415cd3 100644
--- a/hw/audio/fmopl.h
+++ b/hw/audio/fmopl.h
@@ -10,12 +10,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;
@@ -142,5 +141,5 @@ int OPLWrite(FM_OPL *OPL,int a,int v);
unsigned char OPLRead(FM_OPL *OPL,int a);
int OPLTimerOver(FM_OPL *OPL,int c);
-void YM3812UpdateOne(FM_OPL *OPL, INT16 *buffer, int length);
+void YM3812UpdateOne(FM_OPL *OPL, int16_t *buffer, int length);
#endif
diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c
index 47754e86b2..ebd3dbbf80 100644
--- a/hw/audio/fmopl.c
+++ b/hw/audio/fmopl.c
@@ -984,7 +984,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;
--
2.9.3
- [Qemu-devel] [PULL 03/30] audio: release capture buffers, (continued)
- [Qemu-devel] [PULL 03/30] audio: release capture buffers, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 04/30] audio: fix WAVState leak, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 12/30] audio: Remove INT8, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 01/30] hw/audio: replace exit with unrealize in hda_codec_device_class_init, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 27/30] audio: UpdateHandler is not used anymore, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 07/30] audio: Remove YM3526 support, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 02/30] hw/audio: convert exit callback in HDACodecDeviceClass to void, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 18/30] audio: Remove unused fields, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 15/30] audio: Unfold OPLSAMPLE, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 21/30] audio: GUSword is uint16_t, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 13/30] audio: remove INT16,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 10/30] audio: remove UINT16, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 24/30] audio: OPLSetIRQHandler is not used anywhere, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 16/30] audio: Remove Unused OPL_TYPE_*, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 26/30] audio: IRQHandler is not used anymore, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 23/30] audio: GUSsample is int16_t, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 22/30] audio: GUSword is uint16_t, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 05/30] adlib: Remove support for YMF262, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 29/30] audio: un-export OPLResetChip, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 19/30] audio: GUSbyte is uint8_t, Gerd Hoffmann, 2017/05/04
- [Qemu-devel] [PULL 25/30] audio: OPLSetUpdateHandler is not used anywhere, Gerd Hoffmann, 2017/05/04