ref: e16ebfa2b2c80ccb8931f83213d605ff84a09a94
parent: b423e6ad1feba1b4eef07719c68e4e45fcce179c
author: robs <robs>
date: Sat Dec 2 11:00:31 EST 2006
Added command line options for specifying the output file comment. Added -8 as alias for -d
--- a/Changelog
+++ b/Changelog
@@ -41,7 +41,7 @@
circumstances. (robs)
o Add support for 24-bit PCM raw, wav (WAVE_FORMAT_EXTENSIBLE) [FR# 801015],
& flac files. (robs)
- o Added alias -1 (for -b), -2 (for -w), -4 (for -d). (robs)
+ o Added alias -1 (for -b), -2 (for -w), -4 (for -l), -8 (for -d). (robs)
o Remove old, optional rate change and alaw/ulaw conversion code.
(Reuben Thomas)
o Make sox and soxmix a single binary. (Reuben Thomas)
--- a/sox.1
+++ b/sox.1
@@ -323,12 +323,12 @@
European countries and it's gaining popularity because of its
quality. It usually is CPU intensive to work with GSM audio data.
.TP 10
-\fB-1/-2/-3/-4\fR
-The sample data size is 1, 2, 3, or 4 bytes.
+\fB-1/-2/-3/-4/-8\fR
+The sample data size is 1, 2, 3, 4, or 8 bytes; i.e 8, 16, 24, 32, or 64 bits.
.TP 10
\fB-b/-w/-l/-d\fR
-The sample data size is in bytes, 16-bit words, 32-bit long words,
-or 64-bit double long (long long) words.
+Aliases for -1/-2/-4/-8.
+Abbreviations of: byte, word, long word, double long (long long) word.
.PP
\fBOutput File Format Options:\fR
.PP
--- a/src/sox.c
+++ b/src/sox.c
@@ -468,7 +468,7 @@
case '4': case 'l':
fo->info.size = ST_SIZE_DWORD;
break;
- case 'd':
+ case '8': case 'd':
fo->info.size = ST_SIZE_DDWORD;
break;
case 's':
@@ -1808,6 +1808,9 @@
"\n"
"-c channels number of channels in audio data\n"
"-C compression compression factor for variably compressing output formats\n"
+"--comment text Specify comment text for the output file\n"
+"--comment-file filename\n"
+" Specify file containing comment text for the output file\n"
"-r rate sample rate of audio\n"
"-t filetype file type of audio\n"
"-v volume volume adjustment factor (floating point)\n"
@@ -1814,9 +1817,9 @@
"-x invert auto-detected endianess of data\n"
"-s/-u/-U/-A/ sample encoding. signed/unsigned/u-law/A-law\n"
" -a/-i/-g/-f ADPCM/IMA_ADPCM/GSM/floating point\n"
-"-1/-2/-3/-4 sample size in bytes\n"
-"-b/-w/-l/-d sample size. byte(8-bits)/word(16-bits)/\n"
-" long(32-bits)/double long(64-bits)\n"
+"-1/-2/-3/-4/-8 sample size in bytes\n"
+"-b/-w/-l/-d aliases for -1/-2/-4/-8. abbreviations of:\n"
+" byte, word, long, double-long.\n"
"\n");
printf("Supported file formats: ");
--
⑨