diff --git a/ChangeLog b/ChangeLog index e9b4994..5bb9ec6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-05-24 Thomas Vander Stichele + + * 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 * morituri/image/image.py: diff --git a/morituri/test/test_common_encode.py b/morituri/test/test_common_encode.py index e277bc9..3f7e6a8 100644 --- a/morituri/test/test_common_encode.py +++ b/morituri/test/test_common_encode.py @@ -58,8 +58,12 @@ class TagWriteTestCase(tcommon.TestCase): def testWrite(self): 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 ' - 'audiotestsrc num-buffers=10 samplesperbuffer=588 ! ' + 'audiotestsrc ' + 'wave=pink-noise num-buffers=10 samplesperbuffer=588 ! ' 'audioconvert ! ' 'audio/x-raw-int,channels=2,width=16,height=16,rate=44100 ! ' 'flacenc ! filesink location=%s > /dev/null 2>&1' % inpath)