From: yomguy Date: Thu, 3 Mar 2011 10:16:17 +0000 (+0000) Subject: add mp3 test, cleanup X-Git-Tag: 0.3.2~74 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=11ab3157f4b11971ef065c6434e1c5d8c789ad9a;p=timeside.git add mp3 test, cleanup --- diff --git a/timeside/tests/api/test_mp3.py b/timeside/tests/api/test_mp3.py new file mode 100644 index 0000000..eaf093b --- /dev/null +++ b/timeside/tests/api/test_mp3.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +from timeside.decoder import * +from timeside.encoder import * + +source = "../samples/sweep.wav" +dest = "../results/sweep_wav.mp3" + +decoder = FileDecoder(source) +encoder = Mp3Encoder(dest) + +(decoder | encoder).run() diff --git a/timeside/tests/api/test_vorbis.py b/timeside/tests/api/test_vorbis.py index ec2a568..ba0655a 100644 --- a/timeside/tests/api/test_vorbis.py +++ b/timeside/tests/api/test_vorbis.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- from timeside.decoder import * -from timeside.analyzer import * from timeside.encoder import * -import os.path -source = os.path.join(os.path.dirname(__file__), "../samples/sweep.wav") -dest = os.path.join(os.path.dirname(__file__), "../results/sweep_wav.ogg") +source = "../samples/sweep.wav" +dest = "../results/sweep_wav.ogg" decoder = FileDecoder(source) encoder = VorbisEncoder(dest)