Browse Source

integration du sound-system

phyto 3 months ago
parent
commit
9b58ca8ef0
2 changed files with 7 additions and 4 deletions
  1. 4
    3
      Makefile
  2. 3
    1
      audio/t.c

+ 4
- 3
Makefile View File

@@ -7,7 +7,7 @@
7 7
 
8 8
 CC	= gcc
9 9
 CCOPT	= -Wall -g 
10
-CLIB	= core/libdd2m-core.a viz/libdd2m-viz.a
10
+CLIB	= core/libdd2m-core.a viz/libdd2m-viz.a audio/player.o
11 11
 
12 12
 all:	essai 
13 13
 
@@ -19,10 +19,11 @@ essai.o:	essai.c  Makefile
19 19
 	$(CC) ${CCOPT} $< -c 
20 20
 
21 21
 essai:	essai.o Makefile $(CLIB) ${OSERIAL}
22
-	$(CC) ${CCOPT} $< ${OSERIAL} $(CLIB) -lncurses -o $@
22
+	$(CC) ${CCOPT} $< ${OSERIAL} $(CLIB)	\
23
+		-lncurses -lao -lsndfile -o $@
23 24
 
24 25
 fake-values:	fake-values.c  Makefile $(CLIB)
25
-	$(CC) ${CCOPT} $< $(CLIB)  -o $@
26
+	$(CC) ${CCOPT} $< $(CLIB) -o $@
26 27
 
27 28
 # -------------------------------------------------------
28 29
 

+ 3
- 1
audio/t.c View File

@@ -14,7 +14,9 @@ int		verbosity;
14 14
 /* --------------------------------------------------------------------- */
15 15
 void help(int v)
16 16
 {
17
-
17
+puts("Options :");
18
+puts("\t-w filename.wav");
19
+exit(0);
18 20
 }
19 21
 /* --------------------------------------------------------------------- */
20 22
 

Loading…
Cancel
Save