mirror of
https://github.com/zergon321/reisen.git
synced 2025-09-26 20:01:14 +08:00
17 lines
333 B
Go
17 lines
333 B
Go
package reisen
|
|
|
|
import "C"
|
|
|
|
func bufferSize(maxBufferSize C.int) C.ulonglong {
|
|
var byteSize C.ulonglong = 8
|
|
return C.ulonglong(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)
|
|
}
|