change clockTime type, add more bindings

This commit is contained in:
RSWilli
2023-08-11 14:39:32 +02:00
parent d0fc9e926a
commit ca1a83e57d
21 changed files with 400 additions and 206 deletions

27
gst/control_source.go Normal file
View File

@@ -0,0 +1,27 @@
package gst
// #include "gst.go.h"
import "C"
import (
"unsafe"
"github.com/go-gst/go-glib/glib"
)
type InterpolationControlSource struct{ *Object }
func (cs *InterpolationControlSource) Instance() *C.GstControlSource {
return C.toGstControlSource(cs.Unsafe())
}
func NewInterpolationControlSource() *InterpolationControlSource {
cCs := C.gst_interpolation_control_source_new()
return &InterpolationControlSource{
Object: wrapObject(glib.TransferNone(unsafe.Pointer(cCs))),
}
}
func (cs *InterpolationControlSource) SetTimedValue(time ClockTime, value float64) {
C.gst_timed_value_control_source_set(C.toGstTimedValueControlSource(cs.Unsafe()), C.ulong(time), C.double(value))
}