summaryrefslogtreecommitdiff
path: root/rhimport/normalizer.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-14 22:33:17 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-14 22:33:17 (GMT)
commit82a53d6d2801a7b6c0dc0ea06172a26e9de9f39e (patch)
tree11f89f620d6d6d75b322222a79ffd18cd681b9f4 /rhimport/normalizer.go
parent79dfe23a8cfabe4688a3b05998178a11ea51150c (diff)
include cart/cut in progress if available
Diffstat (limited to 'rhimport/normalizer.go')
-rw-r--r--rhimport/normalizer.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/rhimport/normalizer.go b/rhimport/normalizer.go
index d99984c..3f56151 100644
--- a/rhimport/normalizer.go
+++ b/rhimport/normalizer.go
@@ -72,7 +72,7 @@ func runNormalizer(ctx *Context, src *os.File, size int64) (err error) {
}
written += w
if ctx.ProgressCallBack != nil {
- if keep := ctx.ProgressCallBack(2, "normalizing", float64(written), float64(size), ctx.ProgressCallBackData); !keep {
+ if keep := ctx.ProgressCallBack(2, "normalizing", float64(written), float64(size), 0, 0, ctx.ProgressCallBackData); !keep {
ctx.ProgressCallBack = nil
}
}
@@ -92,7 +92,7 @@ func NormalizeFile(ctx *Context) (err error) {
if ctx.LoudnessCorr == 0.0 {
rhl.Println("NormalizeFile: skipping normalization since the gain = 0.0dB")
if ctx.ProgressCallBack != nil {
- if keep := ctx.ProgressCallBack(2, "normalizing", 1.0, 1.0, ctx.ProgressCallBackData); !keep {
+ if keep := ctx.ProgressCallBack(2, "normalizing", 1.0, 1.0, 0, 0, ctx.ProgressCallBackData); !keep {
ctx.ProgressCallBack = nil
}
}
@@ -115,7 +115,7 @@ func NormalizeFile(ctx *Context) (err error) {
}
if ctx.ProgressCallBack != nil {
- if keep := ctx.ProgressCallBack(2, "normalizing", 0.0, float64(size), ctx.ProgressCallBackData); !keep {
+ if keep := ctx.ProgressCallBack(2, "normalizing", 0.0, float64(size), 0, 0, ctx.ProgressCallBackData); !keep {
ctx.ProgressCallBack = nil
}
}
@@ -132,7 +132,7 @@ func NormalizeFile(ctx *Context) (err error) {
}
if ctx.ProgressCallBack != nil {
- if keep := ctx.ProgressCallBack(2, "normalizing", float64(size), float64(size), ctx.ProgressCallBackData); !keep {
+ if keep := ctx.ProgressCallBack(2, "normalizing", float64(size), float64(size), 0, 0, ctx.ProgressCallBackData); !keep {
ctx.ProgressCallBack = nil
}
}