summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2013-11-24 06:49:01 -0800
committerGregory Maxwell <greg@xiph.org>2013-11-24 06:49:01 -0800
commitf4d2c034a629726cf5978fdcac7f60c0af2e3add (patch)
treebd1feff9cc6faaa4992adaaf8dab52e471a26d8c /tests
parent1bf1f51c0a2b4e8bef93a1e949d57b33232b6455 (diff)
downloadopus-f4d2c034a629726cf5978fdcac7f60c0af2e3add.tar.gz
Put custom_encoder_init decl behind CUSTOM_MODES. More softclip tests.
This removes an unused definition warning when compiling without custom modes.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index 88c6b21c..9c0eb9c7 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -384,7 +384,7 @@ void test_soft_clip(void)
{
for (j=0;j<1024;j++)
{
- x[j]=(i&511)*(1/128.f)-2.f;
+ x[j]=(i&255)*(1/32.f)-4.f;
}
opus_pcm_soft_clip(&x[i],1024-i,1,s);
for (j=i;j<1024;j++)
@@ -397,7 +397,7 @@ void test_soft_clip(void)
{
for (j=0;j<1024;j++)
{
- x[j]=(i&511)*(1/128.f)-2.f;
+ x[j]=(i&255)*(1/32.f)-4.f;
}
opus_pcm_soft_clip(x,1024/i,i,s);
for (j=0;j<(1024/i)*i;j++)