public void SetLoop(Gst.TocLoopType loop_type, int repeat_count) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); gst_toc_entry_set_loop(this_as_native, (int)loop_type, repeat_count); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); }
public bool GetLoop(out Gst.TocLoopType loop_type, out int repeat_count) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); int native_loop_type; bool raw_ret = gst_toc_entry_get_loop(this_as_native, out native_loop_type, out repeat_count); bool ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); loop_type = (Gst.TocLoopType)native_loop_type; return(ret); }