diff options
Diffstat (limited to 'rhimport/normalizer.go')
-rw-r--r-- | rhimport/normalizer.go | 8 |
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 } } |