From c0b5972e6e55ea33746ec45317410b17e35e4929 Mon Sep 17 00:00:00 2001 From: Michael Panzlaff Date: Sat, 3 Jul 2021 21:25:05 +0200 Subject: more header refactoring --- arm7/lib/include/SND_util.h | 8 ++++---- arm7/lib/include/syscall.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'arm7/lib/include') diff --git a/arm7/lib/include/SND_util.h b/arm7/lib/include/SND_util.h index d9bc56c0..80534b94 100644 --- a/arm7/lib/include/SND_util.h +++ b/arm7/lib/include/SND_util.h @@ -3,13 +3,13 @@ #include "nitro/types.h" -#define SND_DECIBEL_SQUARE_TABLE_COUNT +#define SND_VOL_DB_MIN (-723) u16 SND_CalcRandom(void); -s8 SND_SinIdx(s32 index); +s8 SND_SinIdx(int index); -u16 SND_CalcChannelVolume(s32 value); -u16 SND_CalcTimer(s32 timer, s32 pitch); +u16 SND_CalcChannelVolume(int value); +u16 SND_CalcTimer(int timer, int pitch); extern const s16 SNDi_DecibelSquareTable[128]; diff --git a/arm7/lib/include/syscall.h b/arm7/lib/include/syscall.h index 55462cc7..1ac6fe49 100644 --- a/arm7/lib/include/syscall.h +++ b/arm7/lib/include/syscall.h @@ -2,5 +2,7 @@ #define POKEDIAMOND_ARM7_SYSCALL_H void SVC_WaitByLoop(u32 ct); +u8 SVC_GetVolumeTable(int idx); +u16 SVC_GetPitchTable(int idx); #endif //POKEDIAMOND_ARM7_SYSCALL_H -- cgit v1.2.3