Lines Matching +full:switch +full:- +full:frequency +full:- +full:hz
1 /*-
41 #define SAMPLE_RATE_DEF 48000 /* hz */
42 #define SAMPLE_RATE_MAX 48000 /* hz */
43 #define SAMPLE_RATE_MIN 8000 /* hz */
59 static int frequency = DEFAULT_HZ; variable
72 * The return value is in the range [-1.0f .. 1.0f]
82 switch (x) { in wave_function_16()
93 return (-1.0f); in wave_function_16()
101 x ^= (mask - 1); in wave_function_16()
118 retval = (1.0f - retval) / 2.0f; in wave_function_16()
128 retval = -retval; in wave_function_16()
137 "\t" "-F <frequency in HZ, default %d Hz>\n" in usage()
138 "\t" "-D <duration in ms, from %d ms to %d ms, default %d ms>\n" in usage()
139 "\t" "-r <sample rate in HZ, from %d Hz to %d Hz, default %d Hz>\n" in usage()
140 "\t" "-d <OSS device (default %s)>\n" in usage()
141 "\t" "-g <gain from %d to %d, default %d>\n" in usage()
142 "\t" "-B Run in background\n" in usage()
143 "\t" "-h Show usage\n", in usage()
166 while ((c = getopt(argc, argv, "BF:D:r:g:d:h")) != -1) { in main()
167 switch (c) { in main()
169 frequency = strtol(optarg, NULL, 10); in main()
208 if (caph_enter() == -1) in main()
244 d = (float)frequency / (float)sample_rate; in main()
250 p = p - floorf(p); in main()
255 else if (off > (size - slope)) in main()
256 sample = sample * (size - off - 1) / (float)slope; in main()