rename Format.String() into Format.Codec() (#307)

This commit is contained in:
Alessandro Ros
2023-06-09 12:42:32 +02:00
committed by GitHub
parent ccf42f49c7
commit 9b4cdbe7ab
36 changed files with 182 additions and 55 deletions

View File

@@ -53,11 +53,18 @@ func (f *LPCM) unmarshal(payloadType uint8, clock string, codec string, _ string
return nil
}
// String implements Format.
func (f *LPCM) String() string {
// Codec implements Format.
func (f *LPCM) Codec() string {
return "LPCM"
}
// String implements Format.
//
// Deprecated: replaced by Codec().
func (f *LPCM) String() string {
return f.Codec()
}
// ClockRate implements Format.
func (f *LPCM) ClockRate() int {
return f.SampleRate