audio: remove INT16

Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-id: 20170425223739.6703-10-quintela@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Juan Quintela 2017-04-26 00:37:22 +02:00 committed by Gerd Hoffmann
parent d2a4a01fa4
commit 7bf10b1de2
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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