changeset 1598:d2555df635ec bqaudiostream

Adjust limits for Opus test
author Chris Cannam
date Wed, 23 Jan 2019 10:31:40 +0000
parents ae9849c0815f
children ce185d4dd408
files data/fileio/test/AudioFileReaderTest.h
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/test/AudioFileReaderTest.h	Wed Jan 23 10:31:30 2019 +0000
+++ b/data/fileio/test/AudioFileReaderTest.h	Wed Jan 23 10:31:40 2019 +0000
@@ -98,6 +98,11 @@
                 maxLimit = 0.1;
                 rmsLimit = 0.03;
 
+            } else if (format == "opus") {
+
+                maxLimit = 0.06;
+                rmsLimit = 0.015;
+
             } else if (format == "aac") {
 
                 // Terrible performance for this test, load of spill
@@ -148,6 +153,11 @@
                 maxLimit = 0.06;
                 rmsLimit = 0.03;
 
+            } else if (format == "opus") {
+
+                maxLimit = 0.06;
+                rmsLimit = 0.015;
+
             } else if (format == "aac") {
 
                 maxLimit = 0.1;
@@ -295,7 +305,8 @@
 
         bool perceptual = (extension == "mp3" ||
                            extension == "aac" ||
-                           extension == "m4a");
+                           extension == "m4a" ||
+                           extension == "opus");
         
         if (perceptual && !gapless) {
             // allow silence at start and end