2018-02-14 16:04:40 +01:00
|
|
|
#ifndef MIXER_H_
|
|
|
|
#define MIXER_H_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2018-02-15 14:00:59 +01:00
|
|
|
typedef enum Music_t {
|
|
|
|
MENU_MUSIC,
|
|
|
|
GAME_MUSIC0,
|
|
|
|
GAME_MUSIC1,
|
|
|
|
GAME_MUSIC2,
|
|
|
|
LAST_MUSIC
|
|
|
|
} Music;
|
|
|
|
|
2018-02-14 16:04:40 +01:00
|
|
|
typedef enum Fx_t {
|
|
|
|
CLICK,
|
2018-02-15 14:00:59 +01:00
|
|
|
SWING0,
|
|
|
|
SWING1,
|
|
|
|
SWING2,
|
|
|
|
SWORD_HIT,
|
|
|
|
BONK,
|
|
|
|
DEATH,
|
|
|
|
COIN,
|
|
|
|
BOTTLE,
|
|
|
|
BUBBLE0,
|
|
|
|
BUBBLE1,
|
|
|
|
BUBBLE2,
|
|
|
|
EAT,
|
|
|
|
LEVEL_UP,
|
|
|
|
NEXT_LEVEL,
|
|
|
|
SPLAT,
|
2018-02-16 14:16:21 +01:00
|
|
|
PLAYER_HIT0,
|
|
|
|
PLAYER_HIT1,
|
|
|
|
PLAYER_HIT2,
|
2018-02-14 16:04:40 +01:00
|
|
|
LAST_EFFECT
|
|
|
|
} Fx;
|
|
|
|
|
|
|
|
void
|
|
|
|
mixer_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
mixer_play_effect(Fx fx);
|
|
|
|
|
2018-02-15 00:02:23 +01:00
|
|
|
void
|
2018-02-15 14:00:59 +01:00
|
|
|
mixer_play_music(Music);
|
2018-02-15 00:02:23 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
mixer_stop_music(void);
|
|
|
|
|
2018-02-14 16:04:40 +01:00
|
|
|
void
|
|
|
|
mixer_close(void);
|
|
|
|
|
|
|
|
#endif // MIXER_H_
|