mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 13:30:47 +00:00
[ntsc-1.0/1.1] Match audio and loose ends (#2293)
* Match ntsc-1.0/1.1 loose ends * Revert audioseq_padding * Fix spelling
This commit is contained in:
parent
0d04f51e8e
commit
d886ebe711
7 changed files with 34 additions and 5 deletions
|
@ -2408,7 +2408,11 @@ CHAN_0EDC:
|
||||||
|
|
||||||
.layer LAYER_1029
|
.layer LAYER_1029
|
||||||
/* 0x1029 [0xC6 0x2F ] */ instr SF0_INST_47
|
/* 0x1029 [0xC6 0x2F ] */ instr SF0_INST_47
|
||||||
|
#if OOT_VERSION < PAL_1_0
|
||||||
|
/* 0x102B [0xCB 0x66 0x4C 0xF0 ] */ env ENVELOPE_664C, 240
|
||||||
|
#else
|
||||||
/* 0x102B [0xCB 0x66 0x4C 0xFF ] */ env ENVELOPE_664C, 255
|
/* 0x102B [0xCB 0x66 0x4C 0xFF ] */ env ENVELOPE_664C, 255
|
||||||
|
#endif
|
||||||
/* 0x102F [0x7E 0x0C 0x6C ] */ notedv PITCH_B5, FRAMERATE_CONST(12, 15), 108
|
/* 0x102F [0x7E 0x0C 0x6C ] */ notedv PITCH_B5, FRAMERATE_CONST(12, 15), 108
|
||||||
/* 0x1032 [0xFF ] */ end
|
/* 0x1032 [0xFF ] */ end
|
||||||
|
|
||||||
|
|
|
@ -603,7 +603,9 @@ LAYER_0452:
|
||||||
/* 0x046C [0xE9 0x0E ] */ notepri 0, 14
|
/* 0x046C [0xE9 0x0E ] */ notepri 0, 14
|
||||||
/* 0x046E [0xE5 0x01 ] */ reverbidx 1
|
/* 0x046E [0xE5 0x01 ] */ reverbidx 1
|
||||||
/* 0x0470 [0xD4 0x28 ] */ reverb 40
|
/* 0x0470 [0xD4 0x28 ] */ reverb 40
|
||||||
|
#if OOT_VERSION >= PAL_1_0
|
||||||
/* 0x0472 [0xC6 0x00 ] */ font Soundfont_0_ID
|
/* 0x0472 [0xC6 0x00 ] */ font Soundfont_0_ID
|
||||||
|
#endif
|
||||||
/* 0x0474 [0xFC 0x01 0x56 ] */ call CHAN_0156
|
/* 0x0474 [0xFC 0x01 0x56 ] */ call CHAN_0156
|
||||||
/* 0x0477 [0xFD 0x60 ] */ delay 96
|
/* 0x0477 [0xFD 0x60 ] */ delay 96
|
||||||
/* 0x0479 [0xFC 0x01 0x56 ] */ call CHAN_0156
|
/* 0x0479 [0xFC 0x01 0x56 ] */ call CHAN_0156
|
||||||
|
@ -1147,7 +1149,7 @@ ENVELOPE_08BA:
|
||||||
point 20, 20000
|
point 20, 20000
|
||||||
hang
|
hang
|
||||||
|
|
||||||
#if !OOT_PAL_N64
|
#if OOT_VERSION == NTSC_1_2 || PLATFORM_GC
|
||||||
.filter FILTER_0932
|
.filter FILTER_0932
|
||||||
filter 0, 0, 0, 0, 0, 0, 0, 0
|
filter 0, 0, 0, 0, 0, 0, 0, 0
|
||||||
|
|
||||||
|
|
|
@ -389,12 +389,18 @@ ALIGNED(4) typedef struct PreNmiBuff {
|
||||||
} PreNmiBuff; // size = 0x18 (actually osAppNMIBuffer is 0x40 bytes large but the rest is unused)
|
} PreNmiBuff; // size = 0x18 (actually osAppNMIBuffer is 0x40 bytes large but the rest is unused)
|
||||||
|
|
||||||
typedef enum ViModeEditState {
|
typedef enum ViModeEditState {
|
||||||
|
#if OOT_VERSION < PAL_1_0
|
||||||
/* -2 */ VI_MODE_EDIT_STATE_NEGATIVE_2 = -2,
|
/* -2 */ VI_MODE_EDIT_STATE_NEGATIVE_2 = -2,
|
||||||
/* -1 */ VI_MODE_EDIT_STATE_NEGATIVE_1,
|
/* -1 */ VI_MODE_EDIT_STATE_NEGATIVE_1,
|
||||||
|
/* 0 */ VI_MODE_EDIT_STATE_INACTIVE,
|
||||||
|
/* 1 */ VI_MODE_EDIT_STATE_2, // active, more adjustments
|
||||||
|
/* 2 */ VI_MODE_EDIT_STATE_3 // active, more adjustments, print comparison with NTSC LAN1 mode
|
||||||
|
#else
|
||||||
/* 0 */ VI_MODE_EDIT_STATE_INACTIVE,
|
/* 0 */ VI_MODE_EDIT_STATE_INACTIVE,
|
||||||
/* 1 */ VI_MODE_EDIT_STATE_ACTIVE,
|
/* 1 */ VI_MODE_EDIT_STATE_ACTIVE,
|
||||||
/* 2 */ VI_MODE_EDIT_STATE_2, // active, more adjustments
|
/* 2 */ VI_MODE_EDIT_STATE_2, // active, more adjustments
|
||||||
/* 3 */ VI_MODE_EDIT_STATE_3 // active, more adjustments, print comparison with NTSC LAN1 mode
|
/* 3 */ VI_MODE_EDIT_STATE_3 // active, more adjustments, print comparison with NTSC LAN1 mode
|
||||||
|
#endif
|
||||||
} ViModeEditState;
|
} ViModeEditState;
|
||||||
|
|
||||||
typedef struct ViMode {
|
typedef struct ViMode {
|
||||||
|
|
2
spec
2
spec
|
@ -219,7 +219,9 @@ beginseg
|
||||||
include "$(BUILD_DIR)/assets/audio/soundfonts/Soundfont_35.o"
|
include "$(BUILD_DIR)/assets/audio/soundfonts/Soundfont_35.o"
|
||||||
include "$(BUILD_DIR)/assets/audio/soundfonts/Soundfont_36.o"
|
include "$(BUILD_DIR)/assets/audio/soundfonts/Soundfont_36.o"
|
||||||
include "$(BUILD_DIR)/assets/audio/soundfonts/Soundfont_37.o"
|
include "$(BUILD_DIR)/assets/audio/soundfonts/Soundfont_37.o"
|
||||||
|
#if OOT_VERSION >= PAL_1_0
|
||||||
include "$(BUILD_DIR)/assets/audio/audiobank_padding.o"
|
include "$(BUILD_DIR)/assets/audio/audiobank_padding.o"
|
||||||
|
#endif
|
||||||
endseg
|
endseg
|
||||||
|
|
||||||
beginseg
|
beginseg
|
||||||
|
|
|
@ -1190,7 +1190,13 @@ void Scene_DrawConfigKokiriForest(PlayState* play) {
|
||||||
spA3 = 255 - (u8)play->roomCtx.drawParams[0];
|
spA3 = 255 - (u8)play->roomCtx.drawParams[0];
|
||||||
} else if (gSaveContext.sceneLayer == 6) {
|
} else if (gSaveContext.sceneLayer == 6) {
|
||||||
spA0 = play->roomCtx.drawParams[0] + 500;
|
spA0 = play->roomCtx.drawParams[0] + 500;
|
||||||
} else if ((!IS_CUTSCENE_LAYER || LINK_IS_ADULT) && GET_EVENTCHKINF(EVENTCHKINF_07)) {
|
} else if (
|
||||||
|
#if OOT_VERSION < PAL_1_0
|
||||||
|
!IS_CUTSCENE_LAYER && GET_EVENTCHKINF(EVENTCHKINF_07)
|
||||||
|
#else
|
||||||
|
(!IS_CUTSCENE_LAYER || LINK_IS_ADULT) && GET_EVENTCHKINF(EVENTCHKINF_07)
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
spA0 = 2150;
|
spA0 = 2150;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "z_eff_ss_en_ice.h"
|
#include "z_eff_ss_en_ice.h"
|
||||||
|
#include "versions.h"
|
||||||
#include "assets/objects/gameplay_keep/gameplay_keep.h"
|
#include "assets/objects/gameplay_keep/gameplay_keep.h"
|
||||||
|
|
||||||
#define rLifespan regs[0]
|
#define rLifespan regs[0]
|
||||||
|
@ -133,9 +134,9 @@ void EffectSsEnIce_Draw(PlayState* play, u32 index, EffectSs* this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectSsEnIce_UpdateFlying(PlayState* play, u32 index, EffectSs* this) {
|
void EffectSsEnIce_UpdateFlying(PlayState* play, u32 index, EffectSs* this) {
|
||||||
s16 rand;
|
#if OOT_VERSION >= NTSC_1_1
|
||||||
|
|
||||||
if ((this->actor != NULL) && (this->actor->update != NULL)) {
|
if ((this->actor != NULL) && (this->actor->update != NULL)) {
|
||||||
|
#endif
|
||||||
if ((this->life >= 9) && (this->actor->colorFilterTimer != 0) && !(this->actor->colorFilterParams & 0xC000)) {
|
if ((this->life >= 9) && (this->actor->colorFilterTimer != 0) && !(this->actor->colorFilterParams & 0xC000)) {
|
||||||
this->pos.x = this->actor->world.pos.x + this->vec.x;
|
this->pos.x = this->actor->world.pos.x + this->vec.x;
|
||||||
this->pos.y = this->actor->world.pos.y + this->vec.y;
|
this->pos.y = this->actor->world.pos.y + this->vec.y;
|
||||||
|
@ -147,9 +148,11 @@ void EffectSsEnIce_UpdateFlying(PlayState* play, u32 index, EffectSs* this) {
|
||||||
this->accel.y = -1.5f;
|
this->accel.y = -1.5f;
|
||||||
this->velocity.y = 5.0f;
|
this->velocity.y = 5.0f;
|
||||||
}
|
}
|
||||||
|
#if OOT_VERSION >= NTSC_1_1
|
||||||
} else {
|
} else {
|
||||||
if (this->life >= 9) {
|
if (this->life >= 9) {
|
||||||
rand = Rand_CenteredFloat(65535.0f);
|
s16 rand = Rand_CenteredFloat(65535.0f);
|
||||||
|
|
||||||
this->accel.x = Math_SinS(rand) * (Rand_ZeroOne() + 1.0f);
|
this->accel.x = Math_SinS(rand) * (Rand_ZeroOne() + 1.0f);
|
||||||
this->accel.z = Math_CosS(rand) * (Rand_ZeroOne() + 1.0f);
|
this->accel.z = Math_CosS(rand) * (Rand_ZeroOne() + 1.0f);
|
||||||
this->life = 8;
|
this->life = 8;
|
||||||
|
@ -157,6 +160,7 @@ void EffectSsEnIce_UpdateFlying(PlayState* play, u32 index, EffectSs* this) {
|
||||||
this->velocity.y = 5.0f;
|
this->velocity.y = 5.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectSsEnIce_Update(PlayState* play, u32 index, EffectSs* this) {
|
void EffectSsEnIce_Update(PlayState* play, u32 index, EffectSs* this) {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "z_eff_ss_kakera.h"
|
#include "z_eff_ss_kakera.h"
|
||||||
|
#include "versions.h"
|
||||||
|
|
||||||
#define rReg0 regs[0]
|
#define rReg0 regs[0]
|
||||||
#define rGravity regs[1]
|
#define rGravity regs[1]
|
||||||
|
@ -54,7 +55,11 @@ u32 EffectSsKakera_Init(PlayState* play, u32 index, EffectSs* this, void* initPa
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PRINTF("shape_modelがNULL\n");
|
PRINTF("shape_modelがNULL\n");
|
||||||
|
#if OOT_VERSION < NTSC_1_1
|
||||||
|
LogUtils_HungupThread("../z_eff_kakera.c", 175);
|
||||||
|
#else
|
||||||
LogUtils_HungupThread("../z_eff_kakera.c", 178);
|
LogUtils_HungupThread("../z_eff_kakera.c", 178);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
this->draw = EffectSsKakera_Draw;
|
this->draw = EffectSsKakera_Draw;
|
||||||
|
|
Loading…
Reference in a new issue