summaryrefslogtreecommitdiff
path: root/test/test_metaflac.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_metaflac.sh')
-rwxr-xr-xtest/test_metaflac.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_metaflac.sh b/test/test_metaflac.sh
index 113e19fc..9a132918 100755
--- a/test/test_metaflac.sh
+++ b/test/test_metaflac.sh
@@ -399,6 +399,7 @@ echo OK
tonegenerator ()
{
+ # When using GAWK, use --lint=posix to identify non-POSIX awk usages.
awk -- '
BEGIN {
samplerate = '$1';
@@ -407,7 +408,11 @@ tonegenerator ()
duration = 1;
bitspersample = 24;
- samplemidpoint = lshift(1, (bitspersample-1));
+ samplemidpoint = 1;
+ for (sps = 0 ; sps < bitspersample - 1 ; sps++) {
+ samplemidpoint *= 2;
+ }
+
samplerange = samplemidpoint - 1;
pi = 4 * atan2(1,1);