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_two.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ft_sfx_weapon_two.c') diff --git a/src/ft_sfx_weapon_two.c b/src/ft_sfx_weapon_two.c index 1afc933..6d8e4a7 100644 --- a/src/ft_sfx_weapon_two.c +++ b/src/ft_sfx_weapon_two.c @@ -15,7 +15,7 @@ #include void - *ft_sfx_weapon_two_load_thread(void *vargp) + *ft_sfx_w_two_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[8].mutex); while (1) { pthread_mutex_lock(&sfx[8].mutex); @@ -41,7 +40,7 @@ void } void - *ft_sfx_weapon_two_fire_thread(void *vargp) + *ft_sfx_w_two_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[9].mutex); while (1) { pthread_mutex_lock(&sfx[9].mutex); -- cgit v1.2.3