mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Z2AudioLib debug (#3016)
This commit is contained in:
@@ -13,6 +13,7 @@ struct JASSoundParams;
|
||||
*/
|
||||
struct JASNonCopyable {
|
||||
JASNonCopyable() {}
|
||||
~JASNonCopyable() {}
|
||||
|
||||
/* 0x0 */ int field_0x0;
|
||||
}; // Size: 0x4
|
||||
|
||||
@@ -349,7 +349,7 @@ public:
|
||||
return audible_ != NULL;
|
||||
}
|
||||
|
||||
JAISoundFader& getFader() { return fader_; }
|
||||
JAISoundFader* getFader() const { return (JAISoundFader*)&fader_; }
|
||||
void fadeIn(u32 maxSteps) { fader_.fadeInFromOut(maxSteps); }
|
||||
void fadeOut(u32 maxSteps) { fader_.fadeOut(maxSteps); }
|
||||
|
||||
|
||||
@@ -47,6 +47,10 @@ struct Z2Param {
|
||||
static u8 BGM_CROSS_FADEOUT_TIME;
|
||||
static u8 BATTLE_BGM_WAIT_TIME;
|
||||
|
||||
static f32 ENEMY_NEARBY_DIST;
|
||||
static f32 BATTLE_FADEIN_DIST;
|
||||
static f32 BATTLE_FADEOUT_DIST;
|
||||
|
||||
static u8 FOUND_TRACK_FI_TIME;
|
||||
static u8 FOUND_TRACK_FO_TIME;
|
||||
static u8 CLOSE_BATTLE_TRACK_FI_TIME;
|
||||
@@ -60,6 +64,10 @@ struct Z2Param {
|
||||
static u8 DARK_SE_FILTER_ON;
|
||||
static u8 DARK_SE_LOW_PASS_FILTER_SETTING;
|
||||
static u8 SYSTEM_SE_USE_DARK_SE_SETTING;
|
||||
|
||||
static f32 AUDIBLE_DELTA_RANGE_VOLUME;
|
||||
static f32 AUDIBLE_DELTA_RANGE_PAN;
|
||||
static f32 AUDIBLE_DELTA_RANGE_DOLBY;
|
||||
};
|
||||
|
||||
extern u8 data_8045086C;
|
||||
|
||||
@@ -45,7 +45,7 @@ struct Z2SoundFader {
|
||||
fadeIn(fadeTime);
|
||||
}
|
||||
|
||||
u32 getCount() {
|
||||
u32 getCount() const {
|
||||
return transition_.remainingSteps_;
|
||||
}
|
||||
|
||||
@@ -53,12 +53,8 @@ struct Z2SoundFader {
|
||||
return intensity_;
|
||||
}
|
||||
|
||||
f32 getDest() {
|
||||
if (getCount() != 0) {
|
||||
return transition_.targetValue_;
|
||||
} else {
|
||||
return intensity_;
|
||||
}
|
||||
f32 getDest() const {
|
||||
return getCount() != 0 ? transition_.targetValue_ : getIntensity();
|
||||
}
|
||||
|
||||
void calc() {
|
||||
|
||||
@@ -9,6 +9,12 @@ u16 seqCallback(JASTrack* track, u16 command);
|
||||
|
||||
class Z2SoundMgr : public JASGlobalInstance<Z2SoundMgr> {
|
||||
public:
|
||||
#if PLATFORM_GCN
|
||||
static const int MAX_CATEGORIES = 9;
|
||||
#else
|
||||
static const int MAX_CATEGORIES = 10;
|
||||
#endif
|
||||
|
||||
Z2SoundMgr();
|
||||
void calc();
|
||||
void setIIR(JAISound* sound, const s16* iir);
|
||||
|
||||
@@ -96,7 +96,7 @@ public:
|
||||
u8 isTwilightBattle();
|
||||
|
||||
u8 getEnemyNumNear() const { return enemuNumNear_; }
|
||||
u8 getEnemyNumVeryFar() { return enemuNumVeryFar_; }
|
||||
u8 getEnemyNumVeryFar() const { return enemuNumVeryFar_; }
|
||||
bool isForceBattle() { return forceBattle_; }
|
||||
JSUList<Z2CreatureEnemy>* getEnemyList() { return this; }
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ struct Z2StatusMgr : public JASGlobalInstance<Z2StatusMgr> {
|
||||
/* 0x01 */ u8 mMinute;
|
||||
/* 0x02 */ u8 mWeekday;
|
||||
/* 0x03 */ u8 field_0x03;
|
||||
/* 0x04 */ s16 mTime;
|
||||
/* 0x04 */ u16 mTime;
|
||||
/* 0x08 */ void* mEventBit;
|
||||
/* 0x0C */ u8 mPauseFlag;
|
||||
/* 0x10 */ u32 mCameraMapInfo;
|
||||
|
||||
Reference in New Issue
Block a user