From 4a924bfb871ed850eccf85fe122bb8120f0ef36a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 2 Mar 2020 01:35:28 +0100 Subject: OSEF again --- src/ft_music.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/ft_music.c') 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 #include #include +#include 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) */ +/* { */ +/* } */ -- cgit v1.2.3