shithub: sox

Download patch

ref: c9baa39756376813f4077e2179589c2a18d26ec2
parent: a6c1a357074753f2ed9bfac16295d401902df204
author: Rob Sykes <robs@users.sourceforge.net>
date: Sat Apr 2 04:50:52 EDT 2011

continuing move from off_t to uint64_t

--- a/src/cdr.c
+++ b/src/cdr.c
@@ -20,7 +20,7 @@
 
 static int start(sox_format_t * ft)
 {
-  return lsx_check_read_params(ft, 2, 44100., SOX_ENCODING_SIGN2, 16, (off_t)0, sox_true);
+  return lsx_check_read_params(ft, 2, 44100., SOX_ENCODING_SIGN2, 16, (uint64_t)0, sox_true);
 }
 
 static int stopwrite(sox_format_t * ft)
--- a/src/lpc10.c
+++ b/src/lpc10.c
@@ -131,7 +131,7 @@
     return SOX_EOF;
   }
   lpc->samples = LPC10_SAMPLES_PER_FRAME;
-  return lsx_check_read_params(ft, 1, 8000., SOX_ENCODING_LPC10, 0, (off_t)0, sox_false);
+  return lsx_check_read_params(ft, 1, 8000., SOX_ENCODING_LPC10, 0, (uint64_t)0, sox_false);
 }
 
 static int startwrite(sox_format_t * ft)
--- a/src/sf.c
+++ b/src/sf.c
@@ -112,7 +112,7 @@
   if (lsx_skipbytes(ft, FIXED_HDR - (size_t)lsx_tell(ft)))
     return SOX_EOF;
 
-  return lsx_check_read_params(ft, channels, rate, encoding, bits_per_sample, (off_t)0, sox_true);
+  return lsx_check_read_params(ft, channels, rate, encoding, bits_per_sample, (uint64_t)0, sox_true);
 }
 
 static int write_header(sox_format_t * ft)
--- a/src/sounder.c
+++ b/src/sounder.c
@@ -28,7 +28,7 @@
     lsx_fail_errno(ft, SOX_EHDR, "invalid Sounder header");
     return SOX_EOF;
   }
-  return lsx_check_read_params(ft, 1, (sox_rate_t)rate, SOX_ENCODING_UNSIGNED, 8, (off_t)0, sox_true);
+  return lsx_check_read_params(ft, 1, (sox_rate_t)rate, SOX_ENCODING_UNSIGNED, 8, (uint64_t)0, sox_true);
 }
 
 static int write_header(sox_format_t * ft)