summaryrefslogtreecommitdiff
path: root/include/JSystem/JAudio2/JASLfo.h
blob: fc4c365be8878704b1f74ceec1bb209d2f8e687a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef JASLFO_H
#define JASLFO_H

#include "dolphin/types.h"

/**
 * @ingroup jsystem-jaudio
 * 
 */
struct JASLfo {
    /* 8029BD14 */ JASLfo();
    /* 8029BD44 */ f32 getValue() const;
    /* 8029BDD8 */ void incCounter(f32);
    /* 8029BE2C */ void resetCounter();

    void setDepth(f32 param_0) { mDepth = param_0; }
    void setPitch(f32 param_0) { mPitch = param_0; }
    void setDelay(u16 param_0) { mDelay = param_0; }

    static void updateFreeRun(f32 param_0) { sFreeRunLfo.incCounter(param_0); }

    static JASLfo sFreeRunLfo;

    /* 0x00 */ u32 field_0x0;
    /* 0x04 */ u32 field_0x4;
    /* 0x08 */ f32 field_0x8;
    /* 0x0C */ f32 mDepth;
    /* 0x10 */ f32 mPitch;
    /* 0x14 */ u16 mDelay;
    /* 0x16 */ u16 field_0x16;
};

#endif /* JASLFO_H */