first commit
This commit is contained in:
28
codec/fake/fake.go
Normal file
28
codec/fake/fake.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package fake
|
||||
|
||||
import (
|
||||
"github.com/deepch/vdk/av"
|
||||
)
|
||||
|
||||
type CodecData struct {
|
||||
CodecType_ av.CodecType
|
||||
SampleRate_ int
|
||||
SampleFormat_ av.SampleFormat
|
||||
ChannelLayout_ av.ChannelLayout
|
||||
}
|
||||
|
||||
func (self CodecData) Type() av.CodecType {
|
||||
return self.CodecType_
|
||||
}
|
||||
|
||||
func (self CodecData) SampleFormat() av.SampleFormat {
|
||||
return self.SampleFormat_
|
||||
}
|
||||
|
||||
func (self CodecData) ChannelLayout() av.ChannelLayout {
|
||||
return self.ChannelLayout_
|
||||
}
|
||||
|
||||
func (self CodecData) SampleRate() int {
|
||||
return self.SampleRate_
|
||||
}
|
||||
Reference in New Issue
Block a user