BETTER_REVERB now properly limited to use with US/JP as to not break EU when enabled
This commit is contained in:
1 parent
5c8ecefa0b
commit
a8eef384fc
4 files changed
+6
-6
No files matched your search
+2
-2
@@ -1259,7 +1259,7 @@ void audio_reset_session(void) {
|
||||
gMaxSimultaneousNotes = preset->maxSimultaneousNotes;
|
||||
gSamplesPerFrameTarget = ALIGN16(gAiFrequency / 60);
|
||||
gReverbDownsampleRate = preset->reverbDownsampleRate;
|
||||
#ifdef BETTER_REVERB
|
||||
#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP))
|
||||
if (gIsConsole)
|
||||
reverbConsole = betterReverbDownsampleConsole; // Console!
|
||||
else
|
||||
@@ -1476,7 +1476,7 @@ void audio_reset_session(void) {
|
||||
|
||||
// This does not have to be reset after being initialized for the first time, which would speed up load times dramatically.
|
||||
// However, reseting this allows for proper clearing of the reverb buffers, as well as dynamic customization of the delays array.
|
||||
#ifdef BETTER_REVERB
|
||||
#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP))
|
||||
if (toggleBetterReverb) {
|
||||
for (i = 0; i < NUM_ALLPASS; ++i) {
|
||||
delaysL[i] = delaysBaselineL[i] / gReverbDownsampleRate;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#define AUDIO_ALIGN(val, amnt) (((val) + (1 << amnt) - 1) & ~((1 << amnt) - 1))
|
||||
|
||||
#ifdef BETTER_REVERB
|
||||
#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP))
|
||||
/* ----------------------------------------------------------------------BEGIN REVERB PARAMETERS---------------------------------------------------------------------- */
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ struct SynthesisReverb gSynthesisReverb;
|
||||
u8 sAudioSynthesisPad[0x20];
|
||||
#endif
|
||||
|
||||
#ifdef BETTER_REVERB
|
||||
#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP))
|
||||
static inline s16 clamp16(s32 x) {
|
||||
if (x >= 32767)
|
||||
return 32767;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#define MAX_UPDATES_PER_FRAME 4
|
||||
#endif
|
||||
|
||||
#ifdef BETTER_REVERB
|
||||
#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP))
|
||||
// Size determined by ((all delaysBaselineL/R values * 8) / (2 ^ Minimum Downsample Factor)) + array pointers.
|
||||
// The default value can be increased or decreased in conjunction with the values in delaysBaselineL/R
|
||||
#define BETTER_REVERB_SIZE 0xF200
|
||||
|
||||
Reference in new issue
Block a user