]> git.parisson.com Git - timeside.git/commitdiff
add mp3 test, cleanup
authoryomguy <yomguy@parisson.com>
Thu, 3 Mar 2011 10:16:17 +0000 (10:16 +0000)
committeryomguy <yomguy@parisson.com>
Thu, 3 Mar 2011 10:16:17 +0000 (10:16 +0000)
timeside/tests/api/test_mp3.py [new file with mode: 0644]
timeside/tests/api/test_vorbis.py

diff --git a/timeside/tests/api/test_mp3.py b/timeside/tests/api/test_mp3.py
new file mode 100644 (file)
index 0000000..eaf093b
--- /dev/null
@@ -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()
index ec2a568810c426808cf8470db520628aace0049f..ba0655a91fed30ab6eb23af8df600e1687c54167 100644 (file)
@@ -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)