mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-11 01:03:15 +02:00
Removed long int use for portability on 64-bit platforms
This commit is contained in:
parent
3fdf086bad
commit
05d375533a
@ -24,7 +24,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
|
|||||||
#define WRITE_OFFSET (WIDTH * STEREO) - STEREO
|
#define WRITE_OFFSET (WIDTH * STEREO) - STEREO
|
||||||
#define GAIN 1.0
|
#define GAIN 1.0
|
||||||
|
|
||||||
typedef signed long int sample_t;
|
typedef signed int sample_t;
|
||||||
|
|
||||||
extern int Fir_Resampler_initialize( int new_size );
|
extern int Fir_Resampler_initialize( int new_size );
|
||||||
extern void Fir_Resampler_shutdown( void );
|
extern void Fir_Resampler_shutdown( void );
|
||||||
|
@ -48,7 +48,7 @@ static unsigned int fm_cycles_count;
|
|||||||
|
|
||||||
/* YM chip function pointers */
|
/* YM chip function pointers */
|
||||||
static void (*YM_Reset)(void);
|
static void (*YM_Reset)(void);
|
||||||
static void (*YM_Update)(long int *buffer, int length);
|
static void (*YM_Update)(int *buffer, int length);
|
||||||
static void (*YM_Write)(unsigned int a, unsigned int v);
|
static void (*YM_Write)(unsigned int a, unsigned int v);
|
||||||
|
|
||||||
/* Run FM chip for required M-cycles */
|
/* Run FM chip for required M-cycles */
|
||||||
|
@ -1681,7 +1681,7 @@ unsigned int YM2413Read(unsigned int a)
|
|||||||
return 0xF8 | ym2413.status;
|
return 0xF8 | ym2413.status;
|
||||||
}
|
}
|
||||||
|
|
||||||
void YM2413Update(long int *buffer, int length)
|
void YM2413Update(int *buffer, int length)
|
||||||
{
|
{
|
||||||
int i, out;
|
int i, out;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
extern void YM2413Init(double clock, int rate);
|
extern void YM2413Init(double clock, int rate);
|
||||||
extern void YM2413ResetChip(void);
|
extern void YM2413ResetChip(void);
|
||||||
extern void YM2413Update(long int *buffer, int length);
|
extern void YM2413Update(int *buffer, int length);
|
||||||
extern void YM2413Write(unsigned int a, unsigned int v);
|
extern void YM2413Write(unsigned int a, unsigned int v);
|
||||||
extern unsigned int YM2413Read(unsigned int a);
|
extern unsigned int YM2413Read(unsigned int a);
|
||||||
extern unsigned char *YM2413GetContextPtr(void);
|
extern unsigned char *YM2413GetContextPtr(void);
|
||||||
|
@ -2045,11 +2045,11 @@ unsigned int YM2612Read(void)
|
|||||||
return ym2612.OPN.ST.status & 0xff;
|
return ym2612.OPN.ST.status & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate 16 bits samples for ym2612 */
|
/* Generate samples for ym2612 */
|
||||||
void YM2612Update(long int *buffer, int length)
|
void YM2612Update(int *buffer, int length)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long int lt,rt;
|
int lt,rt;
|
||||||
|
|
||||||
/* refresh PG increments and EG rates if required */
|
/* refresh PG increments and EG rates if required */
|
||||||
refresh_fc_eg_chan(&ym2612.CH[0]);
|
refresh_fc_eg_chan(&ym2612.CH[0]);
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
extern void YM2612Init(double clock, int rate);
|
extern void YM2612Init(double clock, int rate);
|
||||||
extern void YM2612ResetChip(void);
|
extern void YM2612ResetChip(void);
|
||||||
extern void YM2612Update(long int *buffer, int length);
|
extern void YM2612Update(int *buffer, int length);
|
||||||
extern void YM2612Write(unsigned int a, unsigned int v);
|
extern void YM2612Write(unsigned int a, unsigned int v);
|
||||||
extern unsigned int YM2612Read(void);
|
extern unsigned int YM2612Read(void);
|
||||||
extern unsigned char *YM2612GetContextPtr(void);
|
extern unsigned char *YM2612GetContextPtr(void);
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
int load_archive(char *filename)
|
int load_archive(char *filename)
|
||||||
{
|
{
|
||||||
int size = 0;
|
int size = 0;
|
||||||
char msg[64];
|
|
||||||
|
|
||||||
/* ROM buffer should be allocated first */
|
/* ROM buffer should be allocated first */
|
||||||
if (cart.rom == NULL)
|
if (cart.rom == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user