import os.path
-__all__ = ['TestDecoding']
-
class TestDecoding(TestCase):
"Test the low level streaming features"
while True:
frames, eod = decoder.process()
totalframes += frames.shape[0]
- if eod: break
+ if eod or decoder.eod: break
+
+ decoder.release()
# FIXME compute actual number of frames from file
if os.path.splitext(self.source)[-1].lower() == '.mp3':
if __name__ == '__main__':
unittest.main(testRunner=TestRunner())
-
-