History

Replace removed options in stat output

The stat effect sometimes outputs a guess about the file encoding. Replace removed options -s, -u, -U and -1 there.

Ulrich Klauer committed 13 years ago

Commit fbbc16d1 parent ed4e4fc1 file · +4 −4Browse files

Unified · Split

src/stat.c+4−4
@@ -296,16 +296,16 @@ static int sox_stat_stop(sox_effect_t * effp) · 295 unmodified lines
296296
297297 if (x >= 3.0) { /* use opposite encoding */
298298 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");
300300 else
301− fprintf(stderr,"\nTry: -t raw -u -1 \n");
301+ fprintf(stderr,"\nTry: -t raw -e unsigned-integer -b 8 \n");
302302 } else if (x <= 1.0 / 3.0)
303303 ; /* correctly decoded */
304304 else if (x >= 0.5 && x <= 2.0) { /* use ULAW */
305305 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");
307307 else
308− fprintf(stderr,"\nTry: -t raw -U -1 \n");
308+ fprintf(stderr,"\nTry: -t raw -e mu-law -b 8 \n");
309309 } else
310310 fprintf(stderr, "\nCan't guess the type\n");
311311 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t