This commit is contained in:
Emmm Monster 2021-03-02 18:16:37 +08:00
parent 939cfd38d0
commit ef060159f0
No known key found for this signature in database
GPG Key ID: C98279C83FB50DB9

View File

@ -22,11 +22,6 @@ type Decoder struct {
audio []byte audio []byte
} }
//goland:noinspection GoUnusedExportedFunction
func NewDefaultDecoder(data []byte) common.Decoder {
return &Decoder{file: data, mask: getDefaultMask()}
}
func NewMflac256Decoder(data []byte) common.Decoder { func NewMflac256Decoder(data []byte) common.Decoder {
return &Decoder{file: data, maskDetector: detectMflac256Mask, audioExt: "flac"} return &Decoder{file: data, maskDetector: detectMflac256Mask, audioExt: "flac"}
} }
@ -98,7 +93,7 @@ func (d Decoder) GetMeta() common.Meta {
func DecoderFuncWithExt(ext string) common.NewDecoderFunc { func DecoderFuncWithExt(ext string) common.NewDecoderFunc {
return func(file []byte) common.Decoder { return func(file []byte) common.Decoder {
return &Decoder{file: file, audioExt: ext} return &Decoder{file: file, audioExt: ext, mask: getDefaultMask()}
} }
} }