* morituri/test/test_common_encode.py:
Write a non-sine wave so we have an actual flac file that will typefind.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* morituri/test/test_common_encode.py:
|
||||||
|
Write a non-sine wave so we have an actual flac file that will
|
||||||
|
typefind.
|
||||||
|
|
||||||
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
|
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* morituri/image/image.py:
|
* morituri/image/image.py:
|
||||||
|
|||||||
@@ -58,8 +58,12 @@ class TagWriteTestCase(tcommon.TestCase):
|
|||||||
def testWrite(self):
|
def testWrite(self):
|
||||||
fd, inpath = tempfile.mkstemp(suffix=u'.morituri.tagwrite.flac')
|
fd, inpath = tempfile.mkstemp(suffix=u'.morituri.tagwrite.flac')
|
||||||
|
|
||||||
|
# wave is pink-noise because a pure sine is encoded too efficiently
|
||||||
|
# by flacenc and triggers not enough frames in parsing
|
||||||
|
# FIXME: file a bug for this in GStreamer
|
||||||
os.system('gst-launch '
|
os.system('gst-launch '
|
||||||
'audiotestsrc num-buffers=10 samplesperbuffer=588 ! '
|
'audiotestsrc '
|
||||||
|
'wave=pink-noise num-buffers=10 samplesperbuffer=588 ! '
|
||||||
'audioconvert ! '
|
'audioconvert ! '
|
||||||
'audio/x-raw-int,channels=2,width=16,height=16,rate=44100 ! '
|
'audio/x-raw-int,channels=2,width=16,height=16,rate=44100 ! '
|
||||||
'flacenc ! filesink location=%s > /dev/null 2>&1' % inpath)
|
'flacenc ! filesink location=%s > /dev/null 2>&1' % inpath)
|
||||||
|
|||||||
Reference in New Issue
Block a user