diff options
author | notaz | 2011-07-30 02:38:52 +0300 |
---|---|---|
committer | notaz | 2011-07-30 23:32:27 +0300 |
commit | 1775933abd26d2e282c4e0b4093778d204a0038d (patch) | |
tree | 89d85a2373c08d4df10cf26f6a67f0e87d990757 /plugins/dfsound/externals.h | |
parent | 07a6dd2ce2c0c8ea2de11c30c134c877e7c7b0fb (diff) | |
download | pcsx_rearmed-1775933abd26d2e282c4e0b4093778d204a0038d.tar.gz pcsx_rearmed-1775933abd26d2e282c4e0b4093778d204a0038d.tar.bz2 pcsx_rearmed-1775933abd26d2e282c4e0b4093778d204a0038d.zip |
spu: some major reverb refactoring
some ideas lifted from SPU2-X (Pcsx2)
Diffstat (limited to 'plugins/dfsound/externals.h')
-rw-r--r-- | plugins/dfsound/externals.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/plugins/dfsound/externals.h b/plugins/dfsound/externals.h index 2ccc811..73134d0 100644 --- a/plugins/dfsound/externals.h +++ b/plugins/dfsound/externals.h @@ -45,7 +45,8 @@ #define MAXCHAN 24
// ~ 1 ms of data
-#define NSSIZE 45
+// note: must be even due to the way reverb works now
+#define NSSIZE 46
///////////////////////////////////////////////////////////
// struct defines
@@ -142,8 +143,6 @@ typedef struct int VolLeft;
int VolRight;
- int iLastRVBLeft;
- int iLastRVBRight;
int iRVBLeft;
int iRVBRight;
@@ -179,6 +178,17 @@ typedef struct int MIX_DEST_B1; // (offset)
int IN_COEF_L; // (coef.)
int IN_COEF_R; // (coef.)
+
+ int dirty; // registers changed
+
+ // normalized offsets
+ int nIIR_DEST_A0, nIIR_DEST_A1, nIIR_DEST_B0, nIIR_DEST_B1,
+ nACC_SRC_A0, nACC_SRC_A1, nACC_SRC_B0, nACC_SRC_B1,
+ nIIR_SRC_A0, nIIR_SRC_A1, nIIR_SRC_B0, nIIR_SRC_B1,
+ nACC_SRC_C0, nACC_SRC_C1, nACC_SRC_D0, nACC_SRC_D1,
+ nMIX_DEST_A0, nMIX_DEST_A1, nMIX_DEST_B0, nMIX_DEST_B1;
+ // MIX_DEST_xx - FB_SRC_x
+ int nFB_SRC_A0, nFB_SRC_A1, nFB_SRC_B0, nFB_SRC_B1;
} REVERBInfo;
///////////////////////////////////////////////////////////
@@ -268,8 +278,5 @@ extern int iRightXAVol; extern int * sRVBPlay;
extern int * sRVBEnd;
extern int * sRVBStart;
-extern int iReverbOff;
-extern int iReverbRepeat;
-extern int iReverbNum;
#endif
|