aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_weapon_one.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-06 15:31:58 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-06 15:31:58 +0200
commit7359ab92230a7b4f05855de50f36aa4880901f3b (patch)
treec5de0e375f3f49d308950b24e199591dd8a2c1a8 /src/ft_sfx_weapon_one.c
parentTweak (diff)
download42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.gz
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.bz2
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.xz
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.zst
42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.zip
Better sound handling, few changes
Diffstat (limited to 'src/ft_sfx_weapon_one.c')
-rw-r--r--src/ft_sfx_weapon_one.c6
1 files changed, 2 insertions, 4 deletions
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 <pthread.h>
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);