diff options
author | Michael Panzlaff <michael.panzlaff@fau.de> | 2021-08-01 12:39:24 +0200 |
---|---|---|
committer | Michael Panzlaff <michael.panzlaff@fau.de> | 2021-08-25 18:03:50 +0200 |
commit | 07509f83f91c412f9150c52b4467429ac46eefe2 (patch) | |
tree | 0e299dba7efe65b4bac35f7ac67b02d09fba8ba8 /arm7/lib/src/SND_exChannel.c | |
parent | 94657eec81f491a4d5925b2965bb1ea0d635705e (diff) |
arm7: split SND into SND_global and SND_channel
Diffstat (limited to 'arm7/lib/src/SND_exChannel.c')
-rw-r--r-- | arm7/lib/src/SND_exChannel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arm7/lib/src/SND_exChannel.c b/arm7/lib/src/SND_exChannel.c index 7e41aea3..01bd4f3e 100644 --- a/arm7/lib/src/SND_exChannel.c +++ b/arm7/lib/src/SND_exChannel.c @@ -1,5 +1,6 @@ #include "SND_exChannel.h" +#include "SND_channel.h" #include "SND_main.h" #include "SND_work.h" #include "SND_util.h" @@ -16,6 +17,8 @@ static u32 sWeakLockedChannelMask; // TODO remove this extern once we actually know where this table is extern u8 sSampleDataShiftTable[4]; +static u16 CalcDecayCoeff(int vol); + void SND_ExChannelInit(void) { struct SNDExChannel *chn; s32 i; @@ -471,7 +474,7 @@ int SND_GetLfoValue(struct SNDLfo *lfo) { } } -u16 CalcDecayCoeff(int vol) { +static u16 CalcDecayCoeff(int vol) { if (vol == 127) return 0xFFFF; else if (vol == 126) |