Add peaktask to morituri/command/debug.py

Untested; but should work.
This commit is contained in:
Merlijn Wajer
2017-04-23 22:35:32 +02:00
parent 304c66876b
commit 3526a24310

View File

@@ -182,7 +182,13 @@ class Encode(BaseCommand):
runner.run(encodetask)
sys.stdout.write('Peak level: %r\n' % encodetask.peak)
# I think we want this to be
# fromPath, not toPath, since the sox peak task, afaik, works on wave
# files
peaktask = encode.SoxPeakTask(fromPath)
runner.run(peaktask)
sys.stdout.write('Peak level: %r\n' % peaktask.peak)
sys.stdout.write('Encoded to %s\n' % toPath.encode('utf-8'))