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

index 8f34b93bfc43855e316f5e0a2b8c76308084576e..e5457fa37e40702f32ff24fe24d9ebdad1abc995 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 > 0:
+if max_level > 1:
     gain = 0.9 / max_level
 
 effect = examples.Gain(gain)