Mercurial > hg > svcore
diff data/fileio/test/AudioFileReaderTest.h @ 1598:d2555df635ec bqaudiostream
Adjust limits for Opus test
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 10:31:40 +0000 |
parents | 48e9f538e6e9 |
children | 6d9881e59cc2 |
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