use auto-build for cdr modules
[asterisk/asterisk.git] / channels / gentone.c
old mode 100755 (executable)
new mode 100644 (file)
index 00f5af1..29bd88e
@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
        int freq1, freq2;
        float wlen1, wlen2;
        float val;
-       int x, samples1, samples2, samples=0;
+       int x, samples1, samples2=0, samples=0;
        char fn[256];
        if (argc < 3) {
                fprintf(stderr, "Usage: gensound <name> <freq1> [freq2]\n");
@@ -69,10 +69,10 @@ int main(int argc, char *argv[])
        if ((f = fopen(fn, "w"))) {
                if (freq2) 
                        fprintf(f, "/* %s: Generated from frequencies %d and %d \n"
-                                  "   by gensound.  %d samples  */\n", fn, freq1, freq2, samples); 
+                                  "   by gentone.  %d samples  */\n", fn, freq1, freq2, samples); 
                else
                        fprintf(f, "/* %s: Generated from frequency %d\n"
-                                  "   by gensound.  %d samples  */\n", fn, freq1, samples); 
+                                  "   by gentone.  %d samples  */\n", fn, freq1, samples); 
                fprintf(f, "static short %s[%d] = {\n\t", argv[1], samples);
                for (x=0;x<samples;x++) {
                        val = loudness * sin((freq1 * 2.0 * M_PI * x)/8000.0);