Release 1.20.0
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.PbUtils / EncodingAudioProfile.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.PbUtils {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         public partial class EncodingAudioProfile : Gst.PbUtils.EncodingProfile {
13
14                 public EncodingAudioProfile (IntPtr raw) : base(raw) {}
15
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);
18
19                 public EncodingAudioProfile (Gst.Caps format, string preset, Gst.Caps restriction, uint presence) : base (IntPtr.Zero)
20                 {
21                         if (GetType () != typeof (EncodingAudioProfile)) {
22                                 var vals = new List<GLib.Value> ();
23                                 var names = new List<string> ();
24                                 CreateNativeObject (names.ToArray (), vals.ToArray ());
25                                 return;
26                         }
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);
30                 }
31
32
33                 // Internal representation of the wrapped structure ABI.
34                 static GLib.AbiStruct _class_abi = null;
35                 static public new GLib.AbiStruct class_abi {
36                         get {
37                                 if (_class_abi == null)
38                                         _class_abi = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.class_abi.Fields);
39
40                                 return _class_abi;
41                         }
42                 }
43
44
45                 // End of the ABI representation.
46
47                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
48                 static extern IntPtr gst_encoding_audio_profile_get_type();
49
50                 public static new GLib.GType GType { 
51                         get {
52                                 IntPtr raw_ret = gst_encoding_audio_profile_get_type();
53                                 GLib.GType ret = new GLib.GType(raw_ret);
54                                 return ret;
55                         }
56                 }
57
58
59                 static EncodingAudioProfile ()
60                 {
61                         GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
62                 }
63
64                 // Internal representation of the wrapped structure ABI.
65                 static GLib.AbiStruct _abi_info = null;
66                 static public new GLib.AbiStruct abi_info {
67                         get {
68                                 if (_abi_info == null)
69                                         _abi_info = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.abi_info.Fields);
70
71                                 return _abi_info;
72                         }
73                 }
74
75
76                 // End of the ABI representation.
77
78 #endregion
79         }
80 }