static void Reset_cb(IntPtr inst) { try { AudioSink __obj = GLib.Object.GetObject(inst, false) as AudioSink; __obj.OnReset(); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static bool Open_cb(IntPtr inst) { try { AudioSink __obj = GLib.Object.GetObject(inst, false) as AudioSink; bool __result; __result = __obj.OnOpen(); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int Write_cb(IntPtr inst, IntPtr data, uint length) { try { AudioSink __obj = GLib.Object.GetObject(inst, false) as AudioSink; int __result; __result = __obj.OnWrite(data, length); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool Prepare_cb(IntPtr inst, IntPtr spec) { try { AudioSink __obj = GLib.Object.GetObject(inst, false) as AudioSink; bool __result; __result = __obj.OnPrepare(spec == IntPtr.Zero ? null : (Gst.Audio.AudioRingBufferSpec)GLib.Opaque.GetOpaque(spec, typeof(Gst.Audio.AudioRingBufferSpec), false)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }