Release 1.22.7
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Audio / AudioDownmixMeta.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 AudioDownmixMeta : IEquatable<AudioDownmixMeta> {
14
15                 public Gst.Meta Meta;
16                 private IntPtr _from_position;
17                 private IntPtr _to_position;
18                 public int FromChannels;
19                 public int ToChannels;
20                 public float Matrix;
21
22                 public static Gst.Audio.AudioDownmixMeta Zero = new Gst.Audio.AudioDownmixMeta ();
23
24                 public static Gst.Audio.AudioDownmixMeta New(IntPtr raw) {
25                         if (raw == IntPtr.Zero)
26                                 return Gst.Audio.AudioDownmixMeta.Zero;
27                         return (Gst.Audio.AudioDownmixMeta) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioDownmixMeta));
28                 }
29
30                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
31                 static extern IntPtr gst_audio_downmix_meta_get_info();
32
33                 public static Gst.MetaInfo Info { 
34                         get {
35                                 IntPtr raw_ret = gst_audio_downmix_meta_get_info();
36                                 Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
37                                 return ret;
38                         }
39                 }
40
41                 public bool Equals (AudioDownmixMeta other)
42                 {
43                         return true && Meta.Equals (other.Meta) && _from_position.Equals (other._from_position) && _to_position.Equals (other._to_position) && FromChannels.Equals (other.FromChannels) && ToChannels.Equals (other.ToChannels) && Matrix.Equals (other.Matrix);
44                 }
45
46                 public override bool Equals (object other)
47                 {
48                         return other is AudioDownmixMeta && Equals ((AudioDownmixMeta) other);
49                 }
50
51                 public override int GetHashCode ()
52                 {
53                         return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ _from_position.GetHashCode () ^ _to_position.GetHashCode () ^ FromChannels.GetHashCode () ^ ToChannels.GetHashCode () ^ Matrix.GetHashCode ();
54                 }
55
56                 private static GLib.GType GType {
57                         get { return GLib.GType.Pointer; }
58                 }
59 #endregion
60         }
61 }