diff --git a/include/config.h b/include/config.h index 72bf0caa..0fdff7ec 100644 --- a/include/config.h +++ b/include/config.h @@ -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. diff --git a/src/audio/heap.c b/src/audio/heap.c index bb834368..b63b0664 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -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; diff --git a/src/audio/synthesis.c b/src/audio/synthesis.c index 38f242f1..6789fbc5 100644 --- a/src/audio/synthesis.c +++ b/src/audio/synthesis.c @@ -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; diff --git a/src/audio/synthesis.h b/src/audio/synthesis.h index ee1d96ce..09eae59f 100644 --- a/src/audio/synthesis.h +++ b/src/audio/synthesis.h @@ -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