aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_defines.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
commiteff45a482b40ddb5857adce9f6740282b04ab4a2 (patch)
tree213399609d267cbb1b376161e0297d6ee709ab8f /inc/cub3d_defines.h
parentNow BSD compliant (diff)
download42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.gz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.bz2
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.xz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.zst
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.zip
Pretty compliant but mutex problems
Diffstat (limited to 'inc/cub3d_defines.h')
-rw-r--r--inc/cub3d_defines.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 1fa2da0..d1cddbb 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -48,6 +48,7 @@ enum
**
** 1: Darwin
** 2: Linux
+** 3: FreeBSD
*/
# ifndef FT_OS
@@ -155,10 +156,19 @@ enum
# if FT_OS == 1
# define FT_SND_CMD "/usr/bin/afplay --volume 0.2 %s"
-# else
+# endif
+# if FT_OS == 2
# define FT_SND_CMD "/usr/bin/aplay -f cd -t wav -q %s"
# endif
+# if FT_OS == 3
+# define FT_SND_CMD "/usr/local/bin/waveplay -s %s >/dev/null 2>&1"
+# endif
+# if FT_OS == 1
# define FT_SND_TERM_CMD "pkill -SIGTERM afplay"
+# endif
+# if FT_OS == 3
+# define FT_SND_TERM_CMD "pkill -SIGTERM waveplay"
+# endif
/*
** ====== MOVE SPEED ======