diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 01:35:28 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 01:35:28 +0100 |
commit | 4a924bfb871ed850eccf85fe122bb8120f0ef36a (patch) | |
tree | fbb562d9ce4c010fe0fb57274e063c5ca0e6c57f /src/ft_music.c | |
parent | ok (diff) | |
download | 42-cub3d-4a924bfb871ed850eccf85fe122bb8120f0ef36a.tar.gz 42-cub3d-4a924bfb871ed850eccf85fe122bb8120f0ef36a.tar.bz2 42-cub3d-4a924bfb871ed850eccf85fe122bb8120f0ef36a.tar.xz 42-cub3d-4a924bfb871ed850eccf85fe122bb8120f0ef36a.tar.zst 42-cub3d-4a924bfb871ed850eccf85fe122bb8120f0ef36a.zip |
OSEF again
Diffstat (limited to 'src/ft_music.c')
-rw-r--r-- | src/ft_music.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ft_music.c b/src/ft_music.c index 2d97f99..cc8d1ca 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -14,9 +14,10 @@ #include <cub3d.h> #include <stddef.h> #include <stdlib.h> +#include <pthread.h> void - *ft_music(void *vargp) + *ft_music_thread(void *vargp) { char *cmd; uint8_t len; @@ -33,8 +34,14 @@ void if (FT_OS == 2) ft_sprintf(cmd, "aplay -f cd -t wav -q %s", cl->mlist->music_path); else {} - ft_printf("%s\n", cmd); + ft_printf("\n\n========= QWEQWE =========\n%s\n", cmd); system(cmd); ft_memdel((void**)&cmd); + pthread_exit(NULL); return (NULL); } + +/* void */ +/* *ft_hooks_thread(void *vargp) */ +/* { */ +/* } */ |