mirror of
https://github.com/zergon321/reisen.git
synced 2025-09-26 20:01:14 +08:00
17 lines
321 B
Go
17 lines
321 B
Go
package reisen
|
|
|
|
import "C"
|
|
|
|
func bufferSize(maxBufferSize C.int) C.ulong {
|
|
var byteSize C.ulong = 8
|
|
return C.ulong(maxBufferSize) * byteSize
|
|
}
|
|
|
|
func channelLayout(audio *AudioStream) C.longlong {
|
|
return C.longlong(audio.codecCtx.channel_layout)
|
|
}
|
|
|
|
func rewindPosition(dur int64) C.longlong {
|
|
return C.longlong(dur)
|
|
}
|