shithub: sox

Download patch

ref: 8009303dec5711ae8d4e7f27694df5cc9c265608
parent: 9bc5baa619c56c340620bb748e2b8d0ec783754c
author: cbagwell <cbagwell>
date: Mon Jan 29 20:25:19 EST 2007

Upping version number for prerelease.

--- a/ChangeLog
+++ b/ChangeLog
@@ -4,8 +4,8 @@
 This file contains a list of all changes starting after the release of
 sox-11gamma.
 
-sox-12.18.3
------------
+sox-13.0.0
+----------
 
   File formats:
 
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(SoX, 12.18.3, sox-devel@lists.sourceforge.net)
+AC_INIT(SoX, 12.99.9, sox-devel@lists.sourceforge.net)
 AM_INIT_AUTOMAKE
 
 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
--- a/src/misc.c
+++ b/src/misc.c
@@ -630,7 +630,13 @@
 
 const char *st_version(void)
 {
-  return PACKAGE_VERSION;
+    static char versionstr[20];
+
+    sprintf(versionstr, "%d.%d.%d",
+            (ST_LIB_VERSION_CODE & 0xff0000) >> 16,
+            (ST_LIB_VERSION_CODE & 0x00ff00) >> 8,
+            (ST_LIB_VERSION_CODE & 0x0000ff));
+    return(versionstr);
 }
 
 /* Implements traditional fseek() behavior.  Meant to abstract out
--- a/src/sox.c
+++ b/src/sox.c
@@ -604,7 +604,7 @@
         break;
 
       case 8:
-        printf("%s: v%s\n", myname, st_version());
+        printf("%s: v%s\n", myname, PACKAGE_VERSION);
         exit(0);
         break;
       }
@@ -1646,7 +1646,7 @@
   const st_effect_t *e;
 
   printf("%s: ", myname);
-  printf("SoX Version %s\n\n", st_version());
+  printf("SoX Version %s\n\n", PACKAGE_VERSION);
   if (message)
     fprintf(stderr, "Failed: %s\n\n", message);
   printf("Usage summary: [gopts] [[fopts] infile]... [fopts]%s [effect [effopts]]...\n\n",
@@ -1735,7 +1735,7 @@
   const st_effect_t *e;
 
   printf("%s: ", myname);
-  printf("v%s\n\n", st_version());
+  printf("v%s\n\n", PACKAGE_VERSION);
 
   printf("Effect usage:\n\n");
 
--- a/src/st.h
+++ b/src/st.h
@@ -16,6 +16,14 @@
 #include <stdlib.h>
 #include "ststdint.h"
 
+/* The following is the API version of libst.  It is not meant
+ * to follow the version number of SoX but it has historically.
+ * Please do not count of these numbers being in sync.
+ * The following is at 13.0.0
+ */
+#define ST_LIB_VERSION_CODE 0x0d0000
+#define ST_LIB_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+
 /* Avoid warnings about unused parameters. */
 #ifdef __GNUC__
 #define UNUSED __attribute__ ((unused))