From 955f6ae56cdd3b20eabb44e7c9b931bdb17c2b3e Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 7 May 2023 17:09:58 +1000 Subject: Basic music and sound. --- sound.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sound.h (limited to 'sound.h') diff --git a/sound.h b/sound.h new file mode 100644 index 0000000..bde891b --- /dev/null +++ b/sound.h @@ -0,0 +1,16 @@ +#ifndef sound_h +#define sound_h + +typedef enum { + song_menu, + song_main, + song_win, + song_dead +} Song; + +void init_sound(); +void sound_mix(unsigned char* stream, int len); +void set_song(Song song); +void play_beep(int pitch, int length); + +#endif -- cgit v1.2.3-54-g00ecf