Lines Matching refs:argc
68 static int hilo1_getopts(sox_effect_t * effp, int argc, char **argv) { in hilo1_getopts() argument
69 return lsx_biquad_getopts(effp, argc, argv, 1, 1, 0, 1, 2, "", in hilo1_getopts()
74 static int hilo2_getopts(sox_effect_t * effp, int argc, char **argv) { in hilo2_getopts() argument
76 if (argc > 1 && strcmp(argv[1], "-1") == 0) in hilo2_getopts()
77 return hilo1_getopts(effp, argc - 1, argv + 1); in hilo2_getopts()
78 if (argc > 1 && strcmp(argv[1], "-2") == 0) in hilo2_getopts()
79 ++argv, --argc; in hilo2_getopts()
81 return lsx_biquad_getopts(effp, argc, argv, 1, 2, 0, 1, 2, "qohk", in hilo2_getopts()
86 static int bandpass_getopts(sox_effect_t * effp, int argc, char **argv) { in bandpass_getopts() argument
88 if (argc > 1 && strcmp(argv[1], "-c") == 0) in bandpass_getopts()
89 ++argv, --argc, type = filter_BPF_CSG; in bandpass_getopts()
90 return lsx_biquad_getopts(effp, argc, argv, 2, 2, 0, 1, 2, "hkqob", type); in bandpass_getopts()
94 static int bandrej_getopts(sox_effect_t * effp, int argc, char **argv) { in bandrej_getopts() argument
95 return lsx_biquad_getopts(effp, argc, argv, 2, 2, 0, 1, 2, "hkqob", filter_notch); in bandrej_getopts()
99 static int allpass_getopts(sox_effect_t * effp, int argc, char **argv) { in allpass_getopts() argument
102 if (argc > 1 && strcmp(argv[1], "-1") == 0) in allpass_getopts()
103 ++argv, --argc, type = filter_AP1; in allpass_getopts()
104 else if (argc > 1 && strcmp(argv[1], "-2") == 0) in allpass_getopts()
105 ++argv, --argc, type = filter_AP2; in allpass_getopts()
107 return lsx_biquad_getopts(effp, argc, argv, m, m, 0, 1, 2, "hkqo", type); in allpass_getopts()
111 static int tone_getopts(sox_effect_t * effp, int argc, char **argv) { in tone_getopts() argument
115 return lsx_biquad_getopts(effp, argc, argv, 1, 3, 1, 2, 0, "shkqo", in tone_getopts()
120 static int equalizer_getopts(sox_effect_t * effp, int argc, char **argv) { in equalizer_getopts() argument
121 return lsx_biquad_getopts(effp, argc, argv, 3, 3, 0, 1, 2, "qohk", filter_peakingEQ); in equalizer_getopts()
125 static int band_getopts(sox_effect_t * effp, int argc, char **argv) { in band_getopts() argument
127 if (argc > 1 && strcmp(argv[1], "-n") == 0) in band_getopts()
128 ++argv, --argc, type = filter_BPF_SPK_N; in band_getopts()
129 return lsx_biquad_getopts(effp, argc, argv, 1, 2, 0, 1, 2, "hkqo", type); in band_getopts()
133 static int deemph_getopts(sox_effect_t * effp, int argc, char **argv) { in deemph_getopts() argument
134 return lsx_biquad_getopts(effp, argc, argv, 0, 0, 0, 1, 2, "s", filter_deemph); in deemph_getopts()
138 static int riaa_getopts(sox_effect_t * effp, int argc, char **argv) { in riaa_getopts() argument
142 return --argc? lsx_usage(effp) : SOX_SUCCESS; in riaa_getopts()