diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-02 21:31:19 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-02 21:31:19 +0100 |
commit | a88810c8a70c8e3a7533a266774ab61a84a9adf4 (patch) | |
tree | 9ec78cd5e20f06a6cbcbd0251e215f2ecaae71c4 /src/sound.h | |
parent | 6e03fe85b19bc533888a4689572aab0ccf68edc4 (diff) | |
download | gold-mine-run-a88810c8a70c8e3a7533a266774ab61a84a9adf4.tar.gz gold-mine-run-a88810c8a70c8e3a7533a266774ab61a84a9adf4.zip |
Add sound support
Diffstat (limited to 'src/sound.h')
-rw-r--r-- | src/sound.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/sound.h b/src/sound.h new file mode 100644 index 0000000..506531b --- /dev/null +++ b/src/sound.h @@ -0,0 +1,24 @@ +#ifndef _SOUND_H +#define _SOUND_H + +enum { + EFX_GOLD = 0, + EFX_JUMP, + EFX_PICKUP, + EFX_WARP, + EFX_TIME, + EFX_HIT, + EFX_DEATH, +}; + +uint8_t sound_init(); +void sound_free(); +void sound_update(); + +void sound_music_pattern(uint16_t pat); +void sound_play_efx(uint8_t efxno); + +void sound_mute(); +void sound_unmute(); + +#endif /* _SOUND_H */ |