N64FlashcartMenu
Loading...
Searching...
No Matches
sound.h
Go to the documentation of this file.
1
7#ifndef SOUND_H__
8#define SOUND_H__
9
10#include <stdbool.h>
11
12#define SOUND_MP3_PLAYER_CHANNEL (0)
13#define SOUND_SFX_CHANNEL (2)
28
35void sound_init_default(void);
36
44
51void sound_init_sfx(void);
52
58void sound_use_sfx(bool enable);
59
66
73void sound_deinit(void);
74
80void sound_poll(void);
81
82#endif /* SOUND_H__ */
void sound_init_default(void)
Initialize the default sound system.
Definition sound.c:42
void sound_init_sfx(void)
Initialize the sound effects system.
Definition sound.c:56
void sound_play_effect(sound_effect_t sfx)
Play a specified sound effect.
Definition sound.c:80
void sound_use_sfx(bool enable)
Enable or disable sound effects.
Definition sound.c:71
void sound_poll(void)
Poll the sound system.
Definition sound.c:125
void sound_init_mp3_playback(void)
Initialize the MP3 playback system.
Definition sound.c:49
void sound_deinit(void)
Deinitialize the sound system.
Definition sound.c:107
sound_effect_t
Enumeration of available sound effects for menu interactions.
Definition sound.h:21
@ SFX_EXIT
Definition sound.h:25
@ SFX_CURSOR
Definition sound.h:22
@ SFX_ERROR
Definition sound.h:23
@ SFX_SETTING
Definition sound.h:26
@ SFX_ENTER
Definition sound.h:24