Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soxr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Sykes <rob@rob-Ideapad-S205.(none)>2013-03-02 13:46:22 +0400
committerRob Sykes <rob@rob-Ideapad-S205.(none)>2013-03-02 13:46:22 +0400
commitdee0ed7d63de43c022c4ed74870db8b5705f4f57 (patch)
treef1aed4ff2cb7947388f9ec2d0f8386dd130fe81d
parent6c1c27d680632e3287915655b0f7ffee33da6607 (diff)
show library version used in installation check
-rw-r--r--examples/1-single-block.c3
-rw-r--r--examples/1a-lsr.c3
-rwxr-xr-xinst-check-soxr4
3 files changed, 8 insertions, 2 deletions
diff --git a/examples/1-single-block.c b/examples/1-single-block.c
index f8044b5..3fb9201 100644
--- a/examples/1-single-block.c
+++ b/examples/1-single-block.c
@@ -42,6 +42,9 @@ int main(int argc, char const * arg[])
printf("%5.2f%c", out[i-1], " \n"[!(i&7) || i == odone]);
printf("%-26s %s\n", arg[0], soxr_strerror(error)); /* and reported result. */
+ if (argc > 3) /* Library version check: */
+ printf("runtime=%s API="SOXR_THIS_VERSION_STR"\n", soxr_version());
+
free(out); /* Tidy up. */
return !!error;
}
diff --git a/examples/1a-lsr.c b/examples/1a-lsr.c
index 90a1cc9..e42e530 100644
--- a/examples/1a-lsr.c
+++ b/examples/1a-lsr.c
@@ -32,6 +32,9 @@ int main(int argc, char const * arg[])
printf("%5.2f%c", out[i-1], " \n"[!(i&7) || i == data.output_frames_gen]);
printf("%-26s %s\n", arg[0], src_strerror(error)); /* and reported result. */
+ if (argc > 3) /* Library version check: */
+ printf("runtime=%s\n", src_get_version());
+
free(out); /* Tidy up. */
return !!error;
}
diff --git a/inst-check-soxr b/inst-check-soxr
index d699a44..418f65b 100755
--- a/inst-check-soxr
+++ b/inst-check-soxr
@@ -38,14 +38,14 @@ build_examples() {
if [ `basename $0` = inst-check-soxr ]; then
build_examples soxr
gen="dd if=/dev/urandom count=1000"
- $tmp/1-single-block
+ $tmp/1-single-block 1 2 .
$gen 2> /dev/null | $tmp/2-stream 2>&1 >$tmp/stdout
$gen 2> /dev/null | $tmp/3-options-input-fn 6 7 2 2 0 2>&1 >$tmp/stdout
$gen 2> /dev/null | $tmp/4-split-channels 7 6 2 2 3 2>&1 >$tmp/stdout # Clipping expected here
$gen 2> /dev/null | $tmp/5-variable-rate 2>&1 >$tmp/stdout
else
build_examples soxr-lsr a # lsr has 'a' suffix on example number.
- $tmp/1a-lsr
+ $tmp/1a-lsr 1 2 .
fi
# Tidy up: