diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_music.c | 9 | ||||
-rw-r--r-- | src/ft_treat_args.c | 2 | ||||
-rw-r--r-- | src/main.c | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/src/ft_music.c b/src/ft_music.c index 1be430b..3050f44 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -10,10 +10,19 @@ /* */ /* ************************************************************************** */ +#include <libft.h> #include <cub3d.h> +#include <stdlib.h> void ft_music(t_cub *cl) { + /* char *cmd; */ + /* uint8_t len; */ + (void)cl; + /* if (FT_OS == 2) */ + /* ft_sprintf(cmd, "aplay -f cd -t wav %s", cl->mlist->music_path); */ + /* else {} */ + /* system(cmd); */ } diff --git a/src/ft_treat_args.c b/src/ft_treat_args.c index fae81a0..aee2776 100644 --- a/src/ft_treat_args.c +++ b/src/ft_treat_args.c @@ -35,8 +35,8 @@ uint8_t if (ft_init_winptr(clist) < 0) return (ft_exit(FT_RET_FAILED_MLX, clist)); ft_draw_scene(clist); - ft_hooks_and_loops(clist->wlist, clist); /* ft_music(clist); */ + ft_hooks_and_loops(clist->wlist, clist); } else if (argc == 3 && !ft_strncmp("--save", argv[2], 7)) { @@ -27,7 +27,6 @@ int if (ft_init_winlx(clist) < 0) return (ft_exit(FT_RET_FAILED_MLX, clist)); ft_wall_tex_init(clist); - if (ft_use_args(argc, argv, clist) == FT_RET_FINE) - return (FT_RET_FINE); + ft_use_args(argc, argv, clist); return (FT_RET_FINE); } |