1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
4 namespace Gst.PbUtils {
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 public partial class EncodingAudioProfile : Gst.PbUtils.EncodingProfile {
14 public EncodingAudioProfile (IntPtr raw) : base(raw) {}
16 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17 static extern IntPtr gst_encoding_audio_profile_new(IntPtr format, IntPtr preset, IntPtr restriction, uint presence);
19 public EncodingAudioProfile (Gst.Caps format, string preset, Gst.Caps restriction, uint presence) : base (IntPtr.Zero)
21 if (GetType () != typeof (EncodingAudioProfile)) {
22 var vals = new List<GLib.Value> ();
23 var names = new List<string> ();
24 CreateNativeObject (names.ToArray (), vals.ToArray ());
27 IntPtr native_preset = GLib.Marshaller.StringToPtrGStrdup (preset);
28 Raw = gst_encoding_audio_profile_new(format == null ? IntPtr.Zero : format.Handle, native_preset, restriction == null ? IntPtr.Zero : restriction.Handle, presence);
29 GLib.Marshaller.Free (native_preset);
33 // Internal representation of the wrapped structure ABI.
34 static GLib.AbiStruct _class_abi = null;
35 static public new GLib.AbiStruct class_abi {
37 if (_class_abi == null)
38 _class_abi = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.class_abi.Fields);
45 // End of the ABI representation.
47 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
48 static extern IntPtr gst_encoding_audio_profile_get_type();
50 public static new GLib.GType GType {
52 IntPtr raw_ret = gst_encoding_audio_profile_get_type();
53 GLib.GType ret = new GLib.GType(raw_ret);
59 static EncodingAudioProfile ()
61 GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
64 // Internal representation of the wrapped structure ABI.
65 static GLib.AbiStruct _abi_info = null;
66 static public new GLib.AbiStruct abi_info {
68 if (_abi_info == null)
69 _abi_info = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.abi_info.Fields);
76 // End of the ABI representation.