mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-29 08:36:59 +00:00
refactor: change decoder init parameter
This commit is contained in:
10 files changed
+32
-20
No files matched your search
+2
-2
@@ -30,8 +30,8 @@ func (d *Decoder) GetAudioExt() string {
|
||||
return "." + d.outputExt
|
||||
}
|
||||
|
||||
func NewDecoder(rd io.ReadSeeker) common.Decoder {
|
||||
return &Decoder{rd: rd}
|
||||
func NewDecoder(p *common.DecoderParams) common.Decoder {
|
||||
return &Decoder{rd: p.Reader}
|
||||
}
|
||||
|
||||
// Validate checks if the file is a valid Kuwo .kw file.
|
||||
|
||||
Reference in new issue
Block a user