aboutsummaryrefslogtreecommitdiff
path: root/lib/plw.h
blob: 5d011721c3b5a5ca2dc5764846f6be07d25977e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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