aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2014-09-01 19:44:29 +0200
committerLaurent Bachelier <laurent@bachelier.name>2014-09-01 19:44:29 +0200
commit080b7e189f0efbbd988cac3b06c90bc30e2d6911 (patch)
treeac0b9a5df55a053218a18936456741d709838bdd
parentMake sox parameter line more readable (diff)
downloadbrutha-080b7e189f0efbbd988cac3b06c90bc30e2d6911.tar.xz
Add "guard against clipping" option
-rw-r--r--brutha/file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/brutha/file.py b/brutha/file.py
index 3656629..0191cf1 100644
--- a/brutha/file.py
+++ b/brutha/file.py
@@ -94,7 +94,7 @@ class FlacFile(File):
def transcode(self, commands):
rate, bits = self.resample()
commands.append(
- 'sox -V1 %(src)s -C %(quality)s%(bits)s %(dest)s%(rate)s' %
+ 'sox -V1 %(src)s -G -C %(quality)s%(bits)s %(dest)s%(rate)s' %
dict(
src=escape(self.src()),
quality=self.options['quality'],