aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound
diff options
context:
space:
mode:
authornotaz2012-11-22 00:18:21 +0200
committernotaz2012-11-24 04:25:25 +0200
commitc668f24877c063db881fa8d1eeb8a6fbc649d5a0 (patch)
tree14fb15373e2d06a79012f3549e257bcb26ef7f76 /plugins/dfsound
parentea66e8840b75b0284f192e6fa068857b91ef08eb (diff)
downloadpcsx_rearmed-c668f24877c063db881fa8d1eeb8a6fbc649d5a0.tar.gz
pcsx_rearmed-c668f24877c063db881fa8d1eeb8a6fbc649d5a0.tar.bz2
pcsx_rearmed-c668f24877c063db881fa8d1eeb8a6fbc649d5a0.zip
fix some more 32/64bit incompatibilities
Diffstat (limited to 'plugins/dfsound')
-rw-r--r--plugins/dfsound/externals.h21
-rw-r--r--plugins/dfsound/freeze.c24
-rw-r--r--plugins/dfsound/psemuxa.h4
-rw-r--r--plugins/dfsound/stdafx.h4
4 files changed, 26 insertions, 27 deletions
diff --git a/plugins/dfsound/externals.h b/plugins/dfsound/externals.h
index 28dab57..2f3028e 100644
--- a/plugins/dfsound/externals.h
+++ b/plugins/dfsound/externals.h
@@ -58,24 +58,6 @@
// ADSR INFOS PER CHANNEL
typedef struct
{
- int AttackModeExp;
- long AttackTime;
- long DecayTime;
- long SustainLevel;
- int SustainModeExp;
- long SustainModeDec;
- long SustainTime;
- int ReleaseModeExp;
- unsigned long ReleaseVal;
- long ReleaseTime;
- long ReleaseStartTime;
- long ReleaseVol;
- long lTime;
- long lVolume;
-} ADSRInfo;
-
-typedef struct
-{
unsigned char State:2;
unsigned char AttackModeExp:1;
unsigned char SustainModeExp:1;
@@ -215,11 +197,10 @@ extern int decode_pos;
extern SPUCHAN s_chan[];
extern REVERBInfo rvb;
-extern unsigned long dwNoiseVal;
extern unsigned short spuCtrl;
extern unsigned short spuStat;
extern unsigned short spuIrq;
-extern unsigned long spuAddr;
+extern unsigned int spuAddr;
extern int bSpuInit;
extern unsigned int dwNewChannel;
extern unsigned int dwChannelOn;
diff --git a/plugins/dfsound/freeze.c b/plugins/dfsound/freeze.c
index 58a8347..8787db0 100644
--- a/plugins/dfsound/freeze.c
+++ b/plugins/dfsound/freeze.c
@@ -29,6 +29,24 @@
typedef struct
{
+ int AttackModeExp;
+ int AttackTime;
+ int DecayTime;
+ int SustainLevel;
+ int SustainModeExp;
+ int SustainModeDec;
+ int SustainTime;
+ int ReleaseModeExp;
+ unsigned int ReleaseVal;
+ int ReleaseTime;
+ int ReleaseStartTime;
+ int ReleaseVol;
+ int lTime;
+ int lVolume;
+} ADSRInfo;
+
+typedef struct
+{
int State;
int AttackModeExp;
int AttackRate;
@@ -40,9 +58,9 @@ typedef struct
int ReleaseModeExp;
int ReleaseRate;
int EnvelopeVol;
- long lVolume;
- long lDummy1;
- long lDummy2;
+ int lVolume;
+ int lDummy1;
+ int lDummy2;
} ADSRInfoEx_orig;
typedef struct
diff --git a/plugins/dfsound/psemuxa.h b/plugins/dfsound/psemuxa.h
index 84c6260..402d273 100644
--- a/plugins/dfsound/psemuxa.h
+++ b/plugins/dfsound/psemuxa.h
@@ -8,7 +8,7 @@
typedef struct
{
- long y0, y1;
+ int y0, y1;
} ADPCM_Decode_t;
typedef struct
@@ -21,7 +21,7 @@ typedef struct
short pcm[16384];
} xa_decode_t;
-long xa_decode_sector( xa_decode_t *xdp,
+int xa_decode_sector( xa_decode_t *xdp,
unsigned char *sectorp,
int is_first_sector );
diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h
index d40344f..8993bb3 100644
--- a/plugins/dfsound/stdafx.h
+++ b/plugins/dfsound/stdafx.h
@@ -32,9 +32,9 @@
#undef CALLBACK
#define CALLBACK
-#define DWORD unsigned long
+#define DWORD unsigned int
#define LOWORD(l) ((unsigned short)(l))
-#define HIWORD(l) ((unsigned short)(((unsigned long)(l) >> 16) & 0xFFFF))
+#define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF))
#ifndef INLINE
#define INLINE static inline