static void PadCreatedEvent_cb(IntPtr inst, IntPtr pad) { try { PadTemplate __obj = GLib.Object.GetObject(inst, false) as PadTemplate; __obj.OnPadCreatedEvent(GLib.Object.GetObject(pad) as Gst.Pad); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static ExampleVolume() { Caps audioCaps = Caps.FromString("audio/x-raw, format=(string) S16LE, rate=(int) [1, MAX], channels=(int) 2, layout=(string) interleaved"); __srcTemplate = new PadTemplate("src", PadDirection.Src, PadPresence.Always, audioCaps); __sinkTemplate = new PadTemplate("sink", PadDirection.Sink, PadPresence.Always, audioCaps); }