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 | |
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-- | Makefile | 2 | ||||
-rw-r--r-- | map/lvl_one.cub | 2 | ||||
-rw-r--r-- | media/sound/DEVANT-LES-KAISSONS.wav | bin | 0 -> 40904126 bytes | |||
-rwxr-xr-x | media/sound/revelations.mp3 | bin | 7591392 -> 0 bytes | |||
-rw-r--r-- | src/ft_music.c | 9 | ||||
-rw-r--r-- | src/ft_treat_args.c | 2 | ||||
-rw-r--r-- | src/main.c | 3 |
7 files changed, 14 insertions, 4 deletions
@@ -165,7 +165,7 @@ fclean: clean re: fclean all #--------------------------------------------------------------------------------------------------# run: all - @./${NAME} "map/map_one.cub" + @./${NAME} "map/lvl_one.cub" #--------------------------------------------------------------------------------------------------# .PHONY: all clean clean fclean re run default #============================================== EOF ===============================================# diff --git a/map/lvl_one.cub b/map/lvl_one.cub index 433bfb7..0151dc4 100644 --- a/map/lvl_one.cub +++ b/map/lvl_one.cub @@ -12,6 +12,8 @@ F 50,190,124 L ./map/lvl_two.cub LT ./media/img/crapaud.xpm +MU ./media/sound/DEVANT-LES-KAISSONS.wav + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 L 0 0 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 diff --git a/media/sound/DEVANT-LES-KAISSONS.wav b/media/sound/DEVANT-LES-KAISSONS.wav Binary files differnew file mode 100644 index 0000000..469e6a9 --- /dev/null +++ b/media/sound/DEVANT-LES-KAISSONS.wav diff --git a/media/sound/revelations.mp3 b/media/sound/revelations.mp3 Binary files differdeleted file mode 100755 index 2f13585..0000000 --- a/media/sound/revelations.mp3 +++ /dev/null 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); } |