diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-01 23:55:26 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-01 23:55:26 +0100 |
commit | fbdf87fcabdbc111508f5709347b88c8ce604011 (patch) | |
tree | 6140ee4bd2ed48a680fa23b0d0186f40a3f8a69e /src | |
parent | Norme (diff) | |
download | 42-cub3d-fbdf87fcabdbc111508f5709347b88c8ce604011.tar.gz 42-cub3d-fbdf87fcabdbc111508f5709347b88c8ce604011.tar.bz2 42-cub3d-fbdf87fcabdbc111508f5709347b88c8ce604011.tar.xz 42-cub3d-fbdf87fcabdbc111508f5709347b88c8ce604011.tar.zst 42-cub3d-fbdf87fcabdbc111508f5709347b88c8ce604011.zip |
Preparing music
Diffstat (limited to '')
-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); } |