diff mbox

[5/6] audio: s/INT16/int16_t

Message ID 8e2c4f54f161f2b6a4babfb0f4cb1a10a85dc089.1251482708.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 28, 2009, 6:06 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/fmopl.c |    4 ++--
 hw/fmopl.h |    7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)
diff mbox

Patch

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