aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h4
-rw-r--r--inc/cub3d_defines.h2
-rw-r--r--inc/cub3d_structs.h4
3 files changed, 9 insertions, 1 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 6905688..aafe288 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -150,11 +150,13 @@ void ft_floor_cast_inits(uint16_t y, t_ray *rl, t_cub *cl);
*/
void ft_sfx_death(t_cub *cl);
+void ft_sfx_footstep(t_cub *cl);
void ft_sfx_new_level(t_cub *cl);
void ft_sfx_pain(t_cub *cl);
void ft_sfx_trap(t_cub *cl);
-void *ft_sfx_new_lvl_thread(void *vargp);
void *ft_sfx_death_thread(void *vargp);
+void *ft_sfx_footstep_thread(void *vargp);
+void *ft_sfx_new_lvl_thread(void *vargp);
void *ft_sfx_pain_thread(void *vargp);
void *ft_sfx_trap_thread(void *vargp);
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index d4979a7..286dbef 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -86,6 +86,8 @@ enum
*/
# define FT_SFX_DEATH_PATH "./media/sound/sfx/death_screen.wav"
+# define FT_SFX_FS_ONE_PATH "./media/sound/sfx/footstep_one.wav"
+# define FT_SFX_FS_TWO_PATH "./media/sound/sfx/footstep_two.wav"
# define FT_SFX_N_LVL_PATH "./media/sound/sfx/next_lvl.wav"
# define FT_SFX_SCR_ONE_PATH "./media/sound/sfx/scream_one.wav"
# define FT_SFX_SCR_TWO_PATH "./media/sound/sfx/scream_two.wav"
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 473fe9f..2d1d00d 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -58,15 +58,19 @@ typedef struct s_bmp_info
typedef struct s_sfx
{
char *death;
+ char *footstep_one;
+ char *footstep_two;
char *new_lvl;
char *pain_one;
char *pain_two;
char *trap;
pthread_t death_tid;
+ pthread_t footstep_tid;
pthread_t new_lvl_tid;
pthread_t pain_tid;
pthread_t trap_tid;
pthread_mutex_t death_mutex;
+ pthread_mutex_t footstep_mutex;
pthread_mutex_t new_lvl_mutex;
pthread_mutex_t pain_mutex;
pthread_mutex_t trap_mutex;