diff options
author | red031000 <rubenru09@aol.com> | 2020-05-29 18:45:08 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-05-29 18:45:08 +0100 |
commit | 0d8876b37adebcda571659089dcff343fccdfc8b (patch) | |
tree | 0fc796c2d9a711cd8ba6f1919391a57174aa5b3f /arm9/lib/include/SND_alarm.h | |
parent | 83d33f36fcf46dec8ea99b86563a19885be4bd8e (diff) | |
parent | d6fd8d1ed926feebffab4154a84eb70a84083bfc (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond
Diffstat (limited to 'arm9/lib/include/SND_alarm.h')
-rw-r--r-- | arm9/lib/include/SND_alarm.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arm9/lib/include/SND_alarm.h b/arm9/lib/include/SND_alarm.h new file mode 100644 index 00000000..cf5db862 --- /dev/null +++ b/arm9/lib/include/SND_alarm.h @@ -0,0 +1,25 @@ +#ifndef GUARD_SND_ALARM_H +#define GUARD_SND_ALARM_H + +#include "global.h" +#include "OS_alarm.h" + +typedef void (*SNDAlarmCallback)(void *); + +struct SNDAlarm { + u8 enable; // 0x00 + u8 id; // 0x01 + u16 unk_2; // 0x02 + OSTick tick; // 0x04 + OSTick period; // 0x0C + OSAlarm alarm; // 0x14 +}; // size = 0x40 + +void SND_AlarmInit(void); +void SNDi_IncAlarmId(u32 idx); +u8 SNDi_SetAlarmHandler(u32 idx, SNDAlarmCallback cb, void *data); +void SNDi_CallAlarmHandler(s32 idx); + +#define SND_ALARM_COUNT 8 + +#endif |