summaryrefslogtreecommitdiff
blob: 2d18f01b216a3c8181d61dc261c1809d4cd13664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
diff -ru spectromatic-1.0/spectromatic.c spectromatic-1.0-new/spectromatic.c
--- spectromatic-1.0/spectromatic.c	2002-03-30 06:17:34.000000000 +0100
+++ spectromatic-1.0-new/spectromatic.c	2004-07-02 21:25:49.485524639 +0200
@@ -21,6 +21,7 @@
  ****************************************************************************/
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <malloc.h>
 #include <png.h>
 #include <string.h>
@@ -37,36 +38,36 @@
 void usage (char *pname)
 {
 	fprintf (stderr,
-"
-Usage: %s [options] file.wav
-
-Options:
-	--window <size>		FFT window size (default: 2048)
-	
-	--step <size>		Slide the window by <size> samples each time 
-				(default: 200)
-	
-	--inverse		White/Colour-on-black
-	
-	--logarithmic		Intensity is calculated by
-				log10 (1 + 9 * (amplitude / max_amp)) -
-				better for visualising weaker signals
-
-	--combine XYZ		Determines how a stereo signal is
-				represented as an RGB image. The argument is
-				a 3-character block, each character
-				corresponding to R, G and B components. It
-				may take values of L, R, A, D, X or Z,
-				meaning Left, Right, Average, Difference,
-				Cross-Correlation or Zero respectively.
-
-	--verbose		Slightly less quiet
-	
-	--version		Print out the version
-	
-	--help			You're in it.
-
-", pname);
+"\n"
+"Usage: %s [options] file.wav\n"
+"\n"
+"Options:\n"
+"	--window <size>		FFT window size (default: 2048)\n"
+"\n"
+"	--step <size>		Slide the window by <size> samples each time \n"
+"				(default: 200)\n"
+"\n"
+"	--inverse		White/Colour-on-black\n"
+"\n"
+"	--logarithmic		Intensity is calculated by\n"
+"				log10 (1 + 9 * (amplitude / max_amp)) -\n"
+"				better for visualising weaker signals\n"
+"\n"
+"	--combine XYZ		Determines how a stereo signal is\n"
+"				represented as an RGB image. The argument is\n"
+"				a 3-character block, each character\n"
+"				corresponding to R, G and B components. It\n"
+"				may take values of L, R, A, D, X or Z,\n"
+"				meaning Left, Right, Average, Difference,\n"
+"				Cross-Correlation or Zero respectively.\n"
+"\n"
+"	--verbose		Slightly less quiet\n"
+"\n"
+"	--version		Print out the version\n"
+"\n"
+"	--help			You're in it.\n"
+"\n"
+, pname);
 	
 
 	exit (-1);