diff options
author | quou <quou@disroot.org> | 2023-05-07 17:09:58 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 17:09:58 +1000 |
commit | 955f6ae56cdd3b20eabb44e7c9b931bdb17c2b3e (patch) | |
tree | 62f5dc92a675a5fdc48a0474d11d229cb5f2780d /sound.h | |
parent | 1867e71ac2870f904e0856fd3b093abed6e8a58b (diff) |
Basic music and sound.
Diffstat (limited to 'sound.h')
-rw-r--r-- | sound.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |