From: yomguy Date: Fri, 18 Jun 2010 23:38:39 +0000 (+0000) Subject: fix test_lolevel module calls X-Git-Tag: 0.3.2~125 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b3251b5cfd4aaca7e7cd66ae1a2dd6173539a5ef;p=timeside.git fix test_lolevel module calls --- diff --git a/timeside/tests/api/test_lolevel.py b/timeside/tests/api/test_lolevel.py index 786b141..2406cb6 100644 --- a/timeside/tests/api/test_lolevel.py +++ b/timeside/tests/api/test_lolevel.py @@ -1,10 +1,11 @@ -from timeside.tests.api import examples +# -*- coding: utf-8 -*- -use_gst = 0 -if use_gst: - from timeside.tests.api.gstreamer import FileDecoder, WavEncoder -else: - from timeside.tests.api.examples import FileDecoder, WavEncoder +from timeside.tests.api.examples import Gain +from timeside.core import * +from timeside.decoder import * +from timeside.analyzer import * +from timeside.encoder import * +from timeside.api import * import sys if len(sys.argv) > 1: @@ -15,8 +16,8 @@ else: Decoder = FileDecoder print "Creating decoder with id=%s for: %s" % (Decoder.id(), source) -decoder = Decoder(source) -analyzer = examples.MaxLevel() +decoder = Decoder(source) +analyzer = MaxLevel() decoder.setup() nchannels = decoder.channels() samplerate = decoder.samplerate() @@ -44,7 +45,7 @@ gain = 1 if max_level > 0: gain = 0.9 / max_level -effect = examples.Gain(gain) +effect = Gain(gain) decoder.setup() effect.setup(decoder.channels(), decoder.samplerate())