Decoder.GetAudioExt() return extension with .

This commit is contained in:
Emmm Monster
2021-05-16 12:15:22 +08:00
parent 9caf11217b
commit f9686bbfc4
7 changed files with 19 additions and 7 deletions

View File

@@ -25,7 +25,10 @@ func (d *Decoder) GetAudioData() []byte {
}
func (d *Decoder) GetAudioExt() string {
return d.audioExt
if d.audioExt != "" {
return "." + d.audioExt
}
return ""
}
func (d *Decoder) GetMeta() common.Meta {