From 2fbdf974338bde8576efdae40a819a76b2391033 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 5 Nov 2023 11:22:55 +0000 Subject: Initial import of the open source release --- lib/plw.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/plw.h (limited to 'lib/plw.h') diff --git a/lib/plw.h b/lib/plw.h new file mode 100644 index 0000000..5d01172 --- /dev/null +++ b/lib/plw.h @@ -0,0 +1,19 @@ +#ifndef __PLW_H +#define __PLW_H + +#include + +void PLW_Init(uint8_t *song, uint8_t sub_song); +void PLW_Play(); +void PLW_Stop(); + +void PLW_InitSoundEffects(uint8_t *effects) __z88dk_fastcall; +void PLW_PlaySoundEffect(uint8_t effect_no, uint8_t chan, uint8_t inv_vol); +uint8_t PLW_IsSoundEffectOn(uint8_t chan) __z88dk_fastcall; + +// play sound effect with priority +void PLW_PlaySoundEffectP(uint8_t efx_no) __z88dk_fastcall; + +#define EFX_CHANNEL 2 + +#endif // __PLW_H -- cgit v1.2.3