mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 16:36:51 +08:00
change clockTime type, add more bindings
This commit is contained in:
27
gst/control_source.go
Normal file
27
gst/control_source.go
Normal 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))
|
||||
}
|
Reference in New Issue
Block a user