Ejemplo n.º 1
0
 static void Close_cb(IntPtr inst)
 {
     try {
         AudioCdSrc __obj = GLib.Object.GetObject(inst, false) as AudioCdSrc;
         __obj.OnClose();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Ejemplo n.º 2
0
 static IntPtr ReadSector_cb(IntPtr inst, int sector)
 {
     try {
         AudioCdSrc __obj = GLib.Object.GetObject(inst, false) as AudioCdSrc;
         Gst.Buffer __result;
         __result = __obj.OnReadSector(sector);
         return(__result == null ? IntPtr.Zero : __result.OwnedCopy);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Ejemplo n.º 3
0
 static bool Open_cb(IntPtr inst, IntPtr device)
 {
     try {
         AudioCdSrc __obj = GLib.Object.GetObject(inst, false) as AudioCdSrc;
         bool       __result;
         __result = __obj.OnOpen(GLib.Marshaller.Utf8PtrToString(device));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }