mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +08:00
2023-10-29 08:11:29 CST W44D0
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
// Copyright (c) 2023 QRTC. All rights reserved.
|
||||
// Use of this source code is governed by a MIT
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package ffmpeg
|
||||
|
||||
/*
|
||||
@@ -144,8 +148,8 @@ func SwrInjectSilence(s *SwrContext, count int32) int32 {
|
||||
}
|
||||
|
||||
// SwrGetDelay gets the delay the next input sample will experience relative to the next output sample.
|
||||
func SwrGetDelay(s *SwrContext, base int64) int64 {
|
||||
return (int64)(C.swr_get_delay((*C.struct_SwrContext)(s), (C.int64_t)(base)))
|
||||
func SwrGetDelay[T Integer](s *SwrContext, base T) T {
|
||||
return (T)(C.swr_get_delay((*C.struct_SwrContext)(s), (C.int64_t)(base)))
|
||||
}
|
||||
|
||||
// SwrGetOutSamples Find an upper bound on the number of samples that the next swr_convert
|
||||
|
Reference in New Issue
Block a user