1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 [StructLayout(LayoutKind.Sequential)]
13 public partial struct AudioDownmixMeta : IEquatable<AudioDownmixMeta> {
16 private IntPtr _from_position;
17 private IntPtr _to_position;
18 public int FromChannels;
19 public int ToChannels;
22 public static Gst.Audio.AudioDownmixMeta Zero = new Gst.Audio.AudioDownmixMeta ();
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));
30 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
31 static extern IntPtr gst_audio_downmix_meta_get_info();
33 public static Gst.MetaInfo Info {
35 IntPtr raw_ret = gst_audio_downmix_meta_get_info();
36 Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
41 public bool Equals (AudioDownmixMeta other)
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);
46 public override bool Equals (object other)
48 return other is AudioDownmixMeta && Equals ((AudioDownmixMeta) other);
51 public override int GetHashCode ()
53 return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ _from_position.GetHashCode () ^ _to_position.GetHashCode () ^ FromChannels.GetHashCode () ^ ToChannels.GetHashCode () ^ Matrix.GetHashCode ();
56 private static GLib.GType GType {
57 get { return GLib.GType.Pointer; }