2023-08-18 15:37:56 +02:00
|
|
|
/**
|
|
|
|
* @file sound.h
|
|
|
|
* @brief Menu Sound
|
|
|
|
* @ingroup menu
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SOUND_H__
|
|
|
|
#define SOUND_H__
|
|
|
|
|
2024-07-18 00:11:06 +02:00
|
|
|
#include <stdbool.h>
|
2023-08-18 15:37:56 +02:00
|
|
|
|
|
|
|
#define SOUND_MP3_PLAYER_CHANNEL (0)
|
2024-06-05 22:04:25 +02:00
|
|
|
#define SOUND_SFX_CHANNEL (2)
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
SFX_CURSOR,
|
|
|
|
SFX_ERROR,
|
|
|
|
SFX_ENTER,
|
|
|
|
SFX_EXIT,
|
|
|
|
SFX_SETTING,
|
|
|
|
} sound_effect_t;
|
2023-08-18 15:37:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
void sound_init_default (void);
|
|
|
|
void sound_init_mp3_playback (void);
|
2024-06-05 22:04:25 +02:00
|
|
|
void sound_init_sfx (void);
|
2024-07-18 00:11:06 +02:00
|
|
|
void sound_use_sfx(bool);
|
2024-06-05 22:04:25 +02:00
|
|
|
void sound_play_effect(sound_effect_t sfx);
|
2023-10-10 21:12:53 +02:00
|
|
|
void sound_deinit (void);
|
2023-08-18 15:37:56 +02:00
|
|
|
void sound_poll (void);
|
|
|
|
|
|
|
|
#endif
|