shithub: sox

Download patch

ref: 9515edc95ac6b0449ebd5e191968380d08f7e596
parent: a48b568a48019dfbaba46df760c27bf434667031
author: cbagwell <cbagwell>
date: Tue Oct 17 10:47:34 EDT 2000

Making GSM encoding force the size to bytes for output.  Just makes
it easier on the user.

--- a/src/wav.c
+++ b/src/wav.c
@@ -1182,10 +1182,11 @@
 	 * on verbose output.
 	 */
 	if ((ft->info.encoding == ST_ENCODING_ADPCM ||
-	     ft->info.encoding == ST_ENCODING_IMA_ADPCM) &&
+	     ft->info.encoding == ST_ENCODING_IMA_ADPCM ||
+	     ft->info.encoding == ST_ENCODING_GSM) &&
 	    ft->info.size != ST_SIZE_BYTE)
 	{
-	    st_warn("Overriding output size to bytes for ADPCM data.");
+	    st_warn("Overriding output size to bytes for compressed data.");
 	    ft->info.size = ST_SIZE_BYTE;
 	}