2023-10-31 09:16:44 CST W44D2

This commit is contained in:
aggresss
2023-10-31 09:16:44 +08:00
parent f00ecdba54
commit 05345f7cdc
100 changed files with 3340 additions and 3229 deletions

View File

@@ -144,21 +144,42 @@ func (bsrc *AVBufferSrcParameters) GetSampleRateAddr() *int32 {
return (*int32)(&bsrc.sample_rate)
}
// Deprecated: use ChLayout instead.
//
// GetChannelLayout gets `AVBufferSrcParameters.channel_layout` value.
func (bsrc *AVBufferSrcParameters) GetChannelLayout() uint64 {
return (uint64)(bsrc.channel_layout)
}
// Deprecated: use ChLayout instead.
//
// SetChannelLayout sets `AVBufferSrcParameters.channel_layout` value.
func (bsrc *AVBufferSrcParameters) SetChannelLayout(v uint64) {
bsrc.channel_layout = (C.uint64_t)(v)
}
// Deprecated: use ChLayout instead.
//
// GetChannelLayoutAddr gets `AVBufferSrcParameters.channel_layout` address.
func (bsrc *AVBufferSrcParameters) GetChannelLayoutAddr() *uint64 {
return (*uint64)(&bsrc.channel_layout)
}
// GetChLayout gets `AVBufferSrcParameters.ch_layout` value.
func (bsrc *AVBufferSrcParameters) GetChLayout() AVChannelLayout {
return (AVChannelLayout)(bsrc.ch_layout)
}
// SetChLayout sets `AVBufferSrcParameters.ch_layout` value.
func (bsrc *AVBufferSrcParameters) SetChLayout(v AVChannelLayout) {
bsrc.ch_layout = (C.struct_AVChannelLayout)(v)
}
// GetChLayoutAddr gets `AVBufferSrcParameters.ch_layout` address.
func (bsrc *AVBufferSrcParameters) GetChLayoutAddr() *AVChannelLayout {
return (*AVChannelLayout)(&bsrc.ch_layout)
}
// AvBuffersrcParametersAlloc allocates a new AVBufferSrcParameters instance. It should be freed by the
// caller with AvFree().
func AvBuffersrcParametersAlloc() *AVBufferSrcParameters {