refactor: change decoder init parameter

This commit is contained in:
Unlock Music Dev
2022-12-04 23:05:38 +08:00
parent ad64a0f91d
commit ea3236e14b
10 changed files with 32 additions and 20 deletions

View File

@@ -43,8 +43,8 @@ func (d *Decoder) Read(buf []byte) (int, error) {
return d.audio.Read(buf)
}
func NewTmDecoder(rd io.ReadSeeker) common.Decoder {
return &Decoder{raw: rd}
func NewTmDecoder(p *common.DecoderParams) common.Decoder {
return &Decoder{raw: p.Reader}
}
func init() {