diff options
Diffstat (limited to 'src/ft_music.c')
-rw-r--r-- | src/ft_music.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ft_music.c b/src/ft_music.c index 3104978..c3b90b1 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -13,17 +13,11 @@ #include <cub3d.h> #include <unistd.h> +#include <libft.h> void ft_music_fork(char **mcmd_words, char *const envp[]) { - if (FT_OS == 1) - { - execve("/usr/bin/afplay", mcmd_words, envp); - } - else - { - execve("/usr/bin/aplay", mcmd_words, envp); - } + execve(*(mcmd_words + 0), mcmd_words, envp); } void |