diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-15 15:09:59 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-15 15:09:59 +0100 |
commit | 163bed0c8988ff020b746bf96dc01dd2058dc4f9 (patch) | |
tree | 724090f6319cc6d0336eb2a5b501bd032599d295 /inc | |
parent | ok (diff) | |
download | 42-cub3d-163bed0c8988ff020b746bf96dc01dd2058dc4f9.tar.gz 42-cub3d-163bed0c8988ff020b746bf96dc01dd2058dc4f9.tar.bz2 42-cub3d-163bed0c8988ff020b746bf96dc01dd2058dc4f9.tar.xz 42-cub3d-163bed0c8988ff020b746bf96dc01dd2058dc4f9.tar.zst 42-cub3d-163bed0c8988ff020b746bf96dc01dd2058dc4f9.zip |
Footsteps are bav
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 4 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 2 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 4 |
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; |