mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-02 01:42:49 -04:00
JASOscillator (#675)
* JASOscillator work * JASOscillator matching * JASOscillator code cleanup * JASOscillator minor tweak * Fixed build * Update src/JSystem/JAudio/JASOscillator.cpp Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com> --------- Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
This commit is contained in:
@@ -9,8 +9,8 @@ namespace JASystem {
|
||||
struct Osc_ {
|
||||
/* 0x00 */ u8 field_0x0;
|
||||
/* 0x04 */ f32 field_0x4;
|
||||
/* 0x08 */ void* table;
|
||||
/* 0x0C */ void* rel_table;
|
||||
/* 0x08 */ s16* table;
|
||||
/* 0x0C */ s16* rel_table;
|
||||
/* 0x10 */ f32 field_0x10;
|
||||
/* 0x14 */ f32 field_0x14;
|
||||
};
|
||||
@@ -22,18 +22,31 @@ namespace JASystem {
|
||||
f32 getOffset();
|
||||
bool forceStop();
|
||||
bool release();
|
||||
void calc(s16*);
|
||||
f32 calc(s16*);
|
||||
|
||||
/* 0x00 */ const Osc_* field_0x0;
|
||||
/* 0x04 */ u8 field_0x4;
|
||||
const Osc_* getOsc() const { return mOsc; }
|
||||
void setOsc(const Osc_* osc) { mOsc = osc; }
|
||||
BOOL isOsc() { return mOsc != NULL ? TRUE : FALSE; }
|
||||
void releaseDirect(u16 param_0) { mDirectRelease = param_0; }
|
||||
void bankOscToOfs() {}
|
||||
void getEffectorKind() const {}
|
||||
void getOscMode() const {}
|
||||
|
||||
static s16 oscTableForceStop[6];
|
||||
static const f32 relTableSampleCell[17];
|
||||
static const f32 relTableSqRoot[17];
|
||||
static const f32 relTableSquare[17];
|
||||
|
||||
/* 0x00 */ const Osc_* mOsc;
|
||||
/* 0x04 */ u8 mState;
|
||||
/* 0x05 */ u8 field_0x5;
|
||||
/* 0x06 */ short field_0x6;
|
||||
/* 0x08 */ f32 field_0x8;
|
||||
/* 0x0C */ f32 field_0xc;
|
||||
/* 0x10 */ f32 field_0x10;
|
||||
/* 0x14 */ f32 field_0x14;
|
||||
/* 0x18 */ u16 field_0x18;
|
||||
/* 0x1C */ f32 field_0x1c;
|
||||
/* 0x06 */ u16 field_0x6;
|
||||
/* 0x08 */ f32 mReleaseRate;
|
||||
/* 0x0C */ f32 mPhase;
|
||||
/* 0x10 */ f32 mTargetPhase;
|
||||
/* 0x14 */ f32 mPhaseChangeRate;
|
||||
/* 0x18 */ u16 mDirectRelease;
|
||||
/* 0x1C */ f32 mInitialReleaseRate;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user