aboutsummaryrefslogtreecommitdiff
path: root/lib/plw.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-11-05 11:22:55 +0000
committerJuan J. Martinez <jjm@usebox.net>2023-11-05 11:31:28 +0000
commit2fbdf974338bde8576efdae40a819a76b2391033 (patch)
tree64d41a37470143f142344f9a439d96de3e7918c2 /lib/plw.h
downloadkitsunes-curse-2fbdf974338bde8576efdae40a819a76b2391033.tar.gz
kitsunes-curse-2fbdf974338bde8576efdae40a819a76b2391033.zip
Initial import of the open source release
Diffstat (limited to 'lib/plw.h')
-rw-r--r--lib/plw.h19
1 files changed, 19 insertions, 0 deletions
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 <stdint.h>
+
+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