2021-03-28 22:49:05 +02:00
|
|
|
#ifndef JASLFO_H
|
|
|
|
|
#define JASLFO_H
|
|
|
|
|
|
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
|
|
2024-04-12 00:10:30 -06:00
|
|
|
/**
|
|
|
|
|
* @ingroup jsystem-jaudio
|
|
|
|
|
*
|
|
|
|
|
*/
|
2023-08-01 10:17:21 +03:00
|
|
|
struct JASLfo {
|
2025-11-30 14:23:42 -08:00
|
|
|
JASLfo();
|
|
|
|
|
f32 getValue() const;
|
|
|
|
|
void incCounter(f32);
|
|
|
|
|
void resetCounter();
|
2023-08-01 10:17:21 +03:00
|
|
|
|
2023-09-12 08:14:57 -07:00
|
|
|
void setDepth(f32 param_0) { mDepth = param_0; }
|
|
|
|
|
void setPitch(f32 param_0) { mPitch = param_0; }
|
|
|
|
|
void setDelay(u16 param_0) { mDelay = param_0; }
|
|
|
|
|
|
2023-09-02 15:34:50 -07:00
|
|
|
static void updateFreeRun(f32 param_0) { sFreeRunLfo.incCounter(param_0); }
|
|
|
|
|
|
2023-08-01 10:17:21 +03:00
|
|
|
static JASLfo sFreeRunLfo;
|
|
|
|
|
|
|
|
|
|
/* 0x00 */ u32 field_0x0;
|
|
|
|
|
/* 0x04 */ u32 field_0x4;
|
|
|
|
|
/* 0x08 */ f32 field_0x8;
|
2023-09-12 08:14:57 -07:00
|
|
|
/* 0x0C */ f32 mDepth;
|
|
|
|
|
/* 0x10 */ f32 mPitch;
|
|
|
|
|
/* 0x14 */ u16 mDelay;
|
2023-08-01 10:17:21 +03:00
|
|
|
/* 0x16 */ u16 field_0x16;
|
|
|
|
|
};
|
|
|
|
|
|
2021-03-28 22:49:05 +02:00
|
|
|
#endif /* JASLFO_H */
|