Update add consumer error message

This commit is contained in:
Alexey Khit
2023-09-02 07:37:03 +03:00
parent f6f2998e85
commit 60d7d525f2
3 changed files with 163 additions and 145 deletions

View File

@@ -64,6 +64,20 @@ func (c *Codec) Kind() string {
return GetKind(c.Name)
}
func (c *Codec) PrintName() string {
switch c.Name {
case CodecAAC:
return "AAC"
case CodecELD:
return "AAC-ELD"
case CodecPCM:
return "PCM-S16BE"
case CodecPCML:
return "PCM-S16LE"
}
return c.Name
}
func (c *Codec) Clone() *Codec {
clone := *c
return &clone