mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-30 06:10:54 +03:00
allow -Z even w/o RESAMPLE (32 bits mode)
This commit is contained in:
@@ -343,16 +343,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
while (optind < argc && strlen(argv[optind]) >= 2 && argv[optind][0] == '-') {
|
||||
char *opt = argv[optind] + 1;
|
||||
if (strstr("oabcCdefmMnNpPrs"
|
||||
if (strstr("oabcCdefmMnNpPrsZ"
|
||||
#if ALSA
|
||||
"UVO"
|
||||
#endif
|
||||
/*
|
||||
* only allow '-Z <rate>' override of maxSampleRate
|
||||
* reported by client if built with the capability to resample!
|
||||
*/
|
||||
#if RESAMPLE || RESAMPLE16
|
||||
"Z"
|
||||
#endif
|
||||
, opt) && optind < argc - 1) {
|
||||
optarg = argv[optind + 1];
|
||||
@@ -519,6 +512,9 @@ int main(int argc, char **argv) {
|
||||
case 'N':
|
||||
namefile = optarg;
|
||||
break;
|
||||
case 'Z':
|
||||
maxSampleRate = atoi(optarg);
|
||||
break;
|
||||
case 'W':
|
||||
pcm_check_header = true;
|
||||
break;
|
||||
@@ -552,9 +548,6 @@ int main(int argc, char **argv) {
|
||||
resample = "";
|
||||
}
|
||||
break;
|
||||
case 'Z':
|
||||
maxSampleRate = atoi(optarg);
|
||||
break;
|
||||
#endif
|
||||
#if DSD
|
||||
case 'D':
|
||||
|
||||
Reference in New Issue
Block a user