]> git.parisson.com Git - timeside.git/commitdiff
tests/api/: fix gain computation
authorPaul Brossier <piem@piem.org>
Thu, 18 Feb 2010 18:55:07 +0000 (18:55 +0000)
committerPaul Brossier <piem@piem.org>
Thu, 18 Feb 2010 18:55:07 +0000 (18:55 +0000)
tests/api/test_lolevel.py
tests/api/test_pipe.py

index e5457fa37e40702f32ff24fe24d9ebdad1abc995..8f34b93bfc43855e316f5e0a2b8c76308084576e 100644 (file)
@@ -35,7 +35,7 @@ print "Creating encoder with id=%s for: %s" % (Encoder.id(), destination)
 encoder = Encoder(destination)
 
 gain = 1
-if max_level > 1:
+if max_level > 0:
     gain = 0.9 / max_level
 
 effect = examples.Gain(gain)
index 1aafd690019e23c99a8410c26738f7320d1dac72..2296f316545a69bf169580104c1d842512f37be2 100644 (file)
@@ -15,7 +15,7 @@ duration = examples.Duration()
 (decoder | maxlevel | duration).run()
 
 gain = 1
-if maxlevel.result() > 1:
+if maxlevel.result() > 0:
     gain = 0.9 / maxlevel.result()
 
 print "input maxlevel: %f" % maxlevel.result()