From ef060159f09470db6f8ed02b4950312eab6f08f2 Mon Sep 17 00:00:00 2001 From: Emmm Monster <58943012+emmmx@users.noreply.github.com> Date: Tue, 2 Mar 2021 18:16:37 +0800 Subject: [PATCH] Fix #8 --- algo/qmc/qmc.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/algo/qmc/qmc.go b/algo/qmc/qmc.go index d0b70ce..1e9db44 100644 --- a/algo/qmc/qmc.go +++ b/algo/qmc/qmc.go @@ -22,11 +22,6 @@ type Decoder struct { audio []byte } -//goland:noinspection GoUnusedExportedFunction -func NewDefaultDecoder(data []byte) common.Decoder { - return &Decoder{file: data, mask: getDefaultMask()} -} - func NewMflac256Decoder(data []byte) common.Decoder { return &Decoder{file: data, maskDetector: detectMflac256Mask, audioExt: "flac"} } @@ -98,7 +93,7 @@ func (d Decoder) GetMeta() common.Meta { func DecoderFuncWithExt(ext string) common.NewDecoderFunc { return func(file []byte) common.Decoder { - return &Decoder{file: file, audioExt: ext} + return &Decoder{file: file, audioExt: ext, mask: getDefaultMask()} } }