Release 1.22.7
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Audio / AudioClippingMeta.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.Audio {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         [StructLayout(LayoutKind.Sequential)]
13         public partial struct AudioClippingMeta : IEquatable<AudioClippingMeta> {
14
15                 public Gst.Meta Meta;
16                 public Gst.Format Format;
17                 public ulong Start;
18                 public ulong End;
19
20                 public static Gst.Audio.AudioClippingMeta Zero = new Gst.Audio.AudioClippingMeta ();
21
22                 public static Gst.Audio.AudioClippingMeta New(IntPtr raw) {
23                         if (raw == IntPtr.Zero)
24                                 return Gst.Audio.AudioClippingMeta.Zero;
25                         return (Gst.Audio.AudioClippingMeta) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioClippingMeta));
26                 }
27
28                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
29                 static extern IntPtr gst_audio_clipping_meta_get_info();
30
31                 public static Gst.MetaInfo Info { 
32                         get {
33                                 IntPtr raw_ret = gst_audio_clipping_meta_get_info();
34                                 Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
35                                 return ret;
36                         }
37                 }
38
39                 public bool Equals (AudioClippingMeta other)
40                 {
41                         return true && Meta.Equals (other.Meta) && Format.Equals (other.Format) && Start.Equals (other.Start) && End.Equals (other.End);
42                 }
43
44                 public override bool Equals (object other)
45                 {
46                         return other is AudioClippingMeta && Equals ((AudioClippingMeta) other);
47                 }
48
49                 public override int GetHashCode ()
50                 {
51                         return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Format.GetHashCode () ^ Start.GetHashCode () ^ End.GetHashCode ();
52                 }
53
54                 private static GLib.GType GType {
55                         get { return GLib.GType.Pointer; }
56                 }
57 #endregion
58         }
59 }