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

@@ -88,10 +88,13 @@ public:
void HardReset();
bool UpdateChannel(SAdsrDelta& delta, const SAdsrData& data, float dt);
bool Update(float dt);
uint GetFreeChannel() const;
ushort GetFreeChannel() const;
float GetIntensity() const;
bool OwnsSustained(short id) const;
short CreateRumbleHandle(ushort idx);
ushort GetChannelId(short handle) const { return handle & 0xf; }
ushort GetOwnerId(short handle) const { return ((handle >> 8) & 0xFF); }
ERumblePriority GetPriority(uint idx) { return x10_deltas[idx].x1c_priority; }
};
#endif // _CRUMBLEVOICE