From 3526a243101cc9b6db93ffc8c058295441461387 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sun, 23 Apr 2017 22:35:32 +0200 Subject: [PATCH] Add peaktask to morituri/command/debug.py Untested; but should work. --- morituri/command/debug.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/morituri/command/debug.py b/morituri/command/debug.py index d286266..c6310db 100644 --- a/morituri/command/debug.py +++ b/morituri/command/debug.py @@ -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'))