예제 #1
0
 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;
     }
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
 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;
     }
 }