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
+1
-1
@@ -166,7 +166,7 @@
|
||||
// Makes the coins ia8 64x64 instead of ia16 32x32. Uses new ia8 textures so that vanilla coins look better.
|
||||
#define IA8_COINS
|
||||
// Use a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general.
|
||||
// Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs.
|
||||
// Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only.
|
||||
//#define BETTER_REVERB
|
||||
//Collision data is the type that the collision system uses. All data by default is stored as an s16, but you may change it to s32.
|
||||
//Naturally, that would double the size of all collision data, but would allow you to use 32 bit values instead of 16.
|
||||
|
||||
+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