mirror of
https://git.um-react.app/um/cli.git
synced 2025-11-28 11:43:02 +00:00
Decoder.GetAudioExt() return extension with .
This commit is contained in:
@@ -27,7 +27,7 @@ func (d RawDecoder) GetAudioData() []byte {
|
||||
}
|
||||
|
||||
func (d RawDecoder) GetAudioExt() string {
|
||||
return d.audioExt
|
||||
return "." + d.audioExt
|
||||
}
|
||||
|
||||
func (d RawDecoder) GetMeta() Meta {
|
||||
|
||||
@@ -40,7 +40,7 @@ func (d *Decoder) GetAudioData() []byte {
|
||||
}
|
||||
|
||||
func (d *Decoder) GetAudioExt() string {
|
||||
return d.outputExt
|
||||
return "." + d.outputExt
|
||||
}
|
||||
|
||||
func (d *Decoder) GetMeta() common.Meta {
|
||||
|
||||
@@ -201,7 +201,9 @@ func (d *Decoder) Decode() error {
|
||||
|
||||
func (d Decoder) GetAudioExt() string {
|
||||
if d.meta != nil {
|
||||
return d.meta.GetFormat()
|
||||
if format := d.meta.GetFormat(); format != "" {
|
||||
return "." + d.meta.GetFormat()
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
@@ -84,7 +84,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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -38,7 +38,11 @@ func (d *Decoder) GetAudioData() []byte {
|
||||
}
|
||||
|
||||
func (d *Decoder) GetAudioExt() string {
|
||||
return d.outputExt
|
||||
if d.outputExt != "" {
|
||||
return "." + d.outputExt
|
||||
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (d *Decoder) GetMeta() common.Meta {
|
||||
|
||||
Reference in New Issue
Block a user