The stat effect sometimes outputs a guess about the file encoding. Replace removed options -s, -u, -U and -1 there.
Unified · Split
| @@ -296,16 +296,16 @@ static int sox_stat_stop(sox_effect_t * effp) · 295 unmodified lines | |||
| 296 | 296 | ||
| 297 | if (x >= 3.0) { /* use opposite encoding */ | 297 | if (x >= 3.0) { /* use opposite encoding */ |
| 298 | if (effp->in_encoding->encoding == SOX_ENCODING_UNSIGNED) | 298 | if (effp->in_encoding->encoding == SOX_ENCODING_UNSIGNED) |
| 299 | fprintf(stderr,"\nTry: -t raw -s -1 \n"); | 299 | fprintf(stderr,"\nTry: -t raw -e signed-integer -b 8 \n"); |
| 300 | else | 300 | else |
| 301 | fprintf(stderr,"\nTry: -t raw -u -1 \n"); | 301 | fprintf(stderr,"\nTry: -t raw -e unsigned-integer -b 8 \n"); |
| 302 | } else if (x <= 1.0 / 3.0) | 302 | } else if (x <= 1.0 / 3.0) |
| 303 | ; /* correctly decoded */ | 303 | ; /* correctly decoded */ |
| 304 | else if (x >= 0.5 && x <= 2.0) { /* use ULAW */ | 304 | else if (x >= 0.5 && x <= 2.0) { /* use ULAW */ |
| 305 | if (effp->in_encoding->encoding == SOX_ENCODING_ULAW) | 305 | if (effp->in_encoding->encoding == SOX_ENCODING_ULAW) |
| 306 | fprintf(stderr,"\nTry: -t raw -u -1 \n"); | 306 | fprintf(stderr,"\nTry: -t raw -e unsigned-integer -b 8 \n"); |
| 307 | else | 307 | else |
| 308 | fprintf(stderr,"\nTry: -t raw -U -1 \n"); | 308 | fprintf(stderr,"\nTry: -t raw -e mu-law -b 8 \n"); |
| 309 | } else | 309 | } else |
| 310 | fprintf(stderr, "\nCan't guess the type\n"); | 310 | fprintf(stderr, "\nCan't guess the type\n"); |
| 311 | } | 311 | } |