static IntPtr Payload_cb(IntPtr inst, IntPtr buffer) { try { AudioBaseSink __obj = GLib.Object.GetObject(inst, false) as AudioBaseSink; Gst.Buffer __result; __result = __obj.OnPayload(buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(buffer, typeof(Gst.Buffer), false)); return(__result == null ? IntPtr.Zero : __result.OwnedCopy); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr CreateRingbuffer_cb(IntPtr inst) { try { AudioBaseSink __obj = GLib.Object.GetObject(inst, false) as AudioBaseSink; Gst.Audio.AudioRingBuffer __result; __result = __obj.OnCreateRingbuffer(); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }