mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-31 07:56:03 -04:00
Decompile alCSPNew
This commit is contained in:
@@ -35,7 +35,11 @@ extern "C" {
|
||||
|
||||
#define AL_FX_BUFFER_SIZE 8192
|
||||
#define AL_FRAME_INIT -1
|
||||
#if PAL
|
||||
#define AL_USEC_PER_FRAME 20000
|
||||
#else
|
||||
#define AL_USEC_PER_FRAME 16000
|
||||
#endif
|
||||
#define AL_MAX_PRIORITY 127
|
||||
#define AL_GAIN_CHANGE_TIME 1000
|
||||
|
||||
@@ -621,6 +625,8 @@ typedef struct ALVoiceState_s {
|
||||
u8 tremelo; /* current value of the tremelo */
|
||||
u8 flags; /* bit 0 tremelo flag
|
||||
bit 1 vibrato flag */
|
||||
u32 unk38;
|
||||
u32 unk3c;
|
||||
} ALVoiceState;
|
||||
|
||||
typedef struct {
|
||||
@@ -633,6 +639,15 @@ typedef struct {
|
||||
u8 fxmix; /* current fx mix for this chan */
|
||||
u8 sustain; /* current sustain pedal state */
|
||||
f32 pitchBend; /* current pitch bend val in cents */
|
||||
u32 unk10;
|
||||
u32 unk14;
|
||||
u32 unk18;
|
||||
u32 unk1c;
|
||||
u32 unk20;
|
||||
u32 unk24;
|
||||
u32 unk28;
|
||||
u32 unk2c;
|
||||
u32 unk30;
|
||||
} ALChanState;
|
||||
|
||||
typedef struct ALSeq_s {
|
||||
@@ -749,6 +764,11 @@ typedef struct {
|
||||
ALOscInit initOsc;
|
||||
ALOscUpdate updateOsc;
|
||||
ALOscStop stopOsc;
|
||||
f32 unk7c;
|
||||
f32 unk80;
|
||||
s32 unk84;
|
||||
u8 unk88;
|
||||
u8 unk89;
|
||||
} ALCSPlayer;
|
||||
|
||||
/*
|
||||
|
||||
Executable
+37
@@ -0,0 +1,37 @@
|
||||
|
||||
|
||||
#define KILL_TIME 50000 /* 50 ms */
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
ALVoiceState *__mapVoice(ALSeqPlayer *, u8, u8, u8);
|
||||
void __unmapVoice(ALSeqPlayer *seqp, ALVoice *voice);
|
||||
char __voiceNeedsNoteKill(ALSeqPlayer *seqp, ALVoice *voice, ALMicroTime killTime); /* sct 1/5/96 */
|
||||
|
||||
ALVoiceState *__lookupVoice(ALSeqPlayer *, u8, u8);
|
||||
ALSound *__lookupSound(ALSeqPlayer *, u8, u8, u8);
|
||||
ALSound *__lookupSoundQuick(ALSeqPlayer *, u8, u8, u8);
|
||||
|
||||
s16 __vsVol(ALVoiceState *voice, ALSeqPlayer *seqp);
|
||||
ALMicroTime __vsDelta(ALVoiceState *voice, ALMicroTime t);
|
||||
ALPan __vsPan(ALVoiceState *voice, ALSeqPlayer *seqp);
|
||||
|
||||
void __initFromBank(ALSeqPlayer *seqp, ALBank *b);
|
||||
void __initChanState(ALSeqPlayer *seqp);
|
||||
void __resetPerfChanState(ALSeqPlayer *seqp, s32 chan);
|
||||
void __setInstChanState(ALSeqPlayer *seqp, ALInstrument *inst, s32 chan);
|
||||
|
||||
void __seqpPrintVoices(ALSeqPlayer *);
|
||||
void __seqpReleaseVoice(ALSeqPlayer *seqp, ALVoice *voice,
|
||||
ALMicroTime deltaTime);
|
||||
|
||||
void __seqpStopOsc(ALSeqPlayer *seqp, ALVoiceState *vs);
|
||||
|
||||
void __postNextSeqEvent(ALSeqPlayer *seqp); /* sct 11/7/95 */
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ extern u32 var8005f048;
|
||||
extern u32 var8005f0a8;
|
||||
extern u32 var8005f108;
|
||||
extern u32 var8005f110;
|
||||
extern u32 var8005f114;
|
||||
extern ALGlobals *alGlobals;
|
||||
extern u32 var8005f120;
|
||||
extern u32 var8005f124;
|
||||
extern u32 var8005f128;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
u32 func00034240(void);
|
||||
u32 alCSPNew(void);
|
||||
u32 func00034df8(void);
|
||||
u32 func00034f0c(void);
|
||||
u32 func00034fb8(void);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "types.h"
|
||||
|
||||
u32 func00039c80(void);
|
||||
u32 func00039cd0(void);
|
||||
void func00039cd0(ALCSPlayer *seqp);
|
||||
u32 func00039e5c(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,11 +4,9 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
u32 func0003c4d0(void);
|
||||
u32 func0003c56c(void);
|
||||
u32 func0003c7c0(void);
|
||||
u32 func0003c900(void);
|
||||
u32 func0003c970(void);
|
||||
u32 func0003c9e0(void);
|
||||
u32 func0003cbb4(void);
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ u32 func0003d9cc(void);
|
||||
u32 func0003dad0(void);
|
||||
u32 func0003db14(void);
|
||||
u32 func0003dba0(void);
|
||||
u32 func0003dc88(void);
|
||||
u32 func0003dd14(void);
|
||||
u32 func0003df64(void);
|
||||
u32 func0003e2a0(void);
|
||||
|
||||
Reference in New Issue
Block a user