From 7359ab92230a7b4f05855de50f36aa4880901f3b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 6 Apr 2020 15:31:58 +0200 Subject: Better sound handling, few changes --- src/ft_sfx_weapon_one.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ft_sfx_weapon_one.c') diff --git a/src/ft_sfx_weapon_one.c b/src/ft_sfx_weapon_one.c index fca86f5..2cc8dcc 100644 --- a/src/ft_sfx_weapon_one.c +++ b/src/ft_sfx_weapon_one.c @@ -15,7 +15,7 @@ #include void - *ft_sfx_weapon_one_load_thread(void *vargp) + *ft_sfx_w_one_load_thread(void *vargp) { t_sfx *sfx; @@ -24,7 +24,6 @@ void else pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); sfx = (t_sfx *)vargp; - pthread_mutex_lock(&sfx[6].mutex); while (1) { pthread_mutex_lock(&sfx[6].mutex); @@ -41,7 +40,7 @@ void } void - *ft_sfx_weapon_one_fire_thread(void *vargp) + *ft_sfx_w_one_fire_thread(void *vargp) { t_sfx *sfx; @@ -50,7 +49,6 @@ void else pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); sfx = (t_sfx *)vargp; - pthread_mutex_lock(&sfx[7].mutex); while (1) { pthread_mutex_lock(&sfx[7].mutex); -- cgit v1.2.3