Files
reisen/platform_linux.go
2021-12-24 22:08:33 +03:00

17 lines
305 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.long {
return C.long(audio.codecCtx.channel_layout)
}
func rewindPosition(dur int64) C.long {
return C.long(dur)
}