static bool Render_cb(IntPtr inst, IntPtr audio, IntPtr video) { try { AudioVisualizer __obj = GLib.Object.GetObject(inst, false) as AudioVisualizer; bool __result; __result = __obj.OnRender(audio == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(audio, typeof(Gst.Buffer), false), Gst.Video.VideoFrame.New(video)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool DecideAllocation_cb(IntPtr inst, IntPtr query) { try { AudioVisualizer __obj = GLib.Object.GetObject(inst, false) as AudioVisualizer; bool __result; __result = __obj.OnDecideAllocation(query == IntPtr.Zero ? null : (Gst.Query)GLib.Opaque.GetOpaque(query, typeof(Gst.Query), false)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool Setup_cb(IntPtr inst) { try { AudioVisualizer __obj = GLib.Object.GetObject(inst, false) as AudioVisualizer; bool __result; __result = __obj.OnSetup(); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }