diff options
Diffstat (limited to 'rhimport/normalizer.go')
-rw-r--r-- | rhimport/normalizer.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rhimport/normalizer.go b/rhimport/normalizer.go index 840dde2..e883d97 100644 --- a/rhimport/normalizer.go +++ b/rhimport/normalizer.go @@ -50,7 +50,7 @@ func runNormalizer(ctx *Context, res *Result, src *os.File, size int64) (err err basepath, filename := filepath.Split(src.Name()) ext := filepath.Ext(filename) destName := strings.TrimSuffix(filename, ext) + "_normalized.flac" - rhl.Printf("NormalizeFile: '%s' -> '%s', using gain = %.2f dB", filename, destName, ctx.LoudnessCorr) + ctx.stdlog.Printf("NormalizeFile: '%s' -> '%s', using gain = %.2f dB", filename, destName, ctx.LoudnessCorr) ctx.SourceFile = basepath + destName @@ -99,7 +99,7 @@ func NormalizeFile(ctx *Context) (res *Result, err error) { res = &Result{ResponseCode: http.StatusOK} if ctx.LoudnessCorr == 0.0 { - rhl.Println("NormalizeFile: skipping normalization since the gain = 0.0dB") + ctx.stdlog.Println("NormalizeFile: skipping normalization since the gain = 0.0dB") ctx.reportProgress(2, "normalizing", 1.0, 1.0) return } @@ -118,7 +118,7 @@ func NormalizeFile(ctx *Context) (res *Result, err error) { } if err = runNormalizer(ctx, res, src, size); err != nil { - rhl.Println("NormalizeFile error:", err) + ctx.stdlog.Println("NormalizeFile error:", err) if ctx.DeleteSourceFile { os.Remove(ctx.SourceFile) if ctx.DeleteSourceDir { |