Match and link CRumbleGenerator, nearly match CRumbleVoice

Former-commit-id: bd48696bf3
This commit is contained in:
2023-01-07 11:41:26 -08:00
parent 2214106be6
commit a276743116
7 changed files with 114 additions and 25 deletions

View File

@@ -8,6 +8,7 @@
class CRumbleGenerator {
private:
static const EMotorState kStopAll[4];
CRumbleVoice x0_voices[4];
float xc0_periodTime[4];
float xd0_onTime[4];
@@ -18,7 +19,7 @@ public:
CRumbleGenerator();
~CRumbleGenerator();
s16 Rumble(const SAdsrData& adsr, float, ERumblePriority prio, EIOPort port);
short Rumble(const SAdsrData& adsr, float, ERumblePriority prio, EIOPort port);
void Stop(short id, EIOPort port) {
if (id == -1)
return;
@@ -28,6 +29,7 @@ public:
void Deactivate(short, bool);
void Update(float);
void HardStopAll();
void SetDisabled(const bool disabled);
};
#endif // _CRUMBLEGENERATOR