aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_music.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_music.c')
-rw-r--r--src/ft_music.c11
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) */
+/* { */
+/* } */