Files
tp/include/Z2AudioLib/Z2WolfHowlMgr.h
T

81 lines
2.2 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef Z2WOLFHOWLMGR_H
#define Z2WOLFHOWLMGR_H
2022-12-30 16:19:57 -07:00
#include "JSystem/JAudio2/JASGadget.h"
2023-05-12 12:10:14 -07:00
#include "JSystem/JAudio2/JAISoundHandles.h"
2021-03-28 22:49:05 +02:00
2022-06-01 03:49:32 -07:00
/*
* Z2WolfHowlData
* mLineNum: Number of lines/points within the song
* mSongData: u16 array which corresponds to each line/point
2022-06-01 04:23:39 -07:00
*
2022-06-01 03:49:32 -07:00
* The high byte of each u16 line corresponds to bar type (low, middle, high)
* The low byte of each u16 line corresponds to length of note
*/
2023-08-18 10:01:51 +03:00
struct SongNote {
u8 barType;
u8 length;
};
2022-06-01 03:49:32 -07:00
struct Z2WolfHowlData {
u8 mLineNum;
2023-08-18 10:01:51 +03:00
SongNote* mSongData;
2022-06-01 03:49:32 -07:00
};
2022-12-30 16:19:57 -07:00
class Z2WolfHowlMgr : public JASGlobalInstance<Z2WolfHowlMgr> {
public:
Z2WolfHowlMgr();
void resetState();
2022-06-01 03:49:32 -07:00
void calcVolumeMod(f32);
2023-08-18 10:01:51 +03:00
f32 getNowPitch();
f32 getNowInputValue();
2022-06-01 03:49:32 -07:00
void calcPitchMod(f32, f32);
s8 startWolfHowlSound(f32, f32, bool, f32);
void setCorrectData(s8, Z2WolfHowlData*);
2023-08-18 10:01:51 +03:00
SongNote getCorrectLine(u8);
u8 getCorrectLineNum();
s8 checkLine();
s8 getOnLineNum();
void startWindStoneSound(s8, Vec*);
2023-08-18 10:01:51 +03:00
int startGuideMelody(bool);
void skipCorrectDemo();
void setCorrectCurve(s8 i_curve) { setCorrectData(i_curve, NULL); }
u32 getTimer() { return mTimer; }
u8 getReleaseTimer() { return mReleaseTimer; }
private:
2022-12-30 16:19:57 -07:00
/* 0x00 */ JAISoundHandle field_0x00;
/* 0x04 */ JAISoundHandle field_0x04;
/* 0x08 */ JAISoundHandle field_0x08;
2022-06-01 03:49:32 -07:00
/* 0x0C */ Z2WolfHowlData* mpCurSong;
2023-08-18 10:01:51 +03:00
/* 0x10 */ Z2WolfHowlData* mpSongList;
2022-06-01 03:49:32 -07:00
/* 0x14 */ f32 mNowInputValue;
/* 0x18 */ f32 field_0x18;
/* 0x1C */ f32 field_0x1c;
/* 0x20 */ f32 field_0x20;
/* 0x24 */ f32 field_0x24;
/* 0x28 */ f32 field_0x28;
/* 0x2C */ u8 field_0x2c[4];
2022-06-01 03:49:32 -07:00
/* 0x30 */ f32 field_0x30;
/* 0x34 */ f32 field_0x34;
2022-12-30 16:19:57 -07:00
/* 0x38 */ f32 field_0x38[10];
/* 0x60 */ f32 field_0x60[10];
2023-08-18 10:01:51 +03:00
/* 0x88 */ u32 mTimer;
/* 0x8C */ u8 mReleaseTimer;
/* 0x8D */ u8 field_0x8d;
2022-12-30 16:19:57 -07:00
/* 0x8E */ s8 mCorrectCurveID;
/* 0x8F */ u8 field_0x8f;
/* 0x90 */ s16 field_0x90;
2022-12-30 16:19:57 -07:00
/* 0x92 */ u16 field_0x92[20];
2023-08-18 10:01:51 +03:00
/* 0xBA */ u8 field_0xba;
2022-12-30 16:19:57 -07:00
/* 0xBB */ s8 field_0xbb;
2023-08-18 10:01:51 +03:00
/* 0xBC */ u8 field_0xbc;
/* 0xBD */ s8 field_0xbd;
/* 0xBE */ u16 field_0xbe;
};
2021-03-28 22:49:05 +02:00
#endif /* Z2WOLFHOWLMGR_H */