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 AudioFormatInfo : IEquatable<AudioFormatInfo> {
15 public Gst.Audio.AudioFormat Format;
17 public string Description;
18 public Gst.Audio.AudioFormatFlags Flags;
19 public int Endianness;
22 [MarshalAs (UnmanagedType.ByValArray, SizeConst=8)]
23 public byte[] Silence;
24 public Gst.Audio.AudioFormat UnpackFormat;
25 private Gst.AudioSharp.AudioFormatUnpackNative _unpack_func;
26 public Gst.Audio.AudioFormatUnpack UnpackFunc {
28 return Gst.AudioSharp.AudioFormatUnpackWrapper.GetManagedDelegate (_unpack_func);
31 private Gst.AudioSharp.AudioFormatPackNative _pack_func;
32 public Gst.Audio.AudioFormatPack PackFunc {
34 return Gst.AudioSharp.AudioFormatPackWrapper.GetManagedDelegate (_pack_func);
37 [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
38 private IntPtr[] _gstGstReserved;
40 public static Gst.Audio.AudioFormatInfo Zero = new Gst.Audio.AudioFormatInfo ();
42 public static Gst.Audio.AudioFormatInfo New(IntPtr raw) {
43 if (raw == IntPtr.Zero)
44 return Gst.Audio.AudioFormatInfo.Zero;
45 return (Gst.Audio.AudioFormatInfo) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioFormatInfo));
48 public bool Equals (AudioFormatInfo other)
50 return true && Format.Equals (other.Format) && Name.Equals (other.Name) && Description.Equals (other.Description) && Flags.Equals (other.Flags) && Endianness.Equals (other.Endianness) && Width.Equals (other.Width) && Depth.Equals (other.Depth) && Silence.Equals (other.Silence) && UnpackFormat.Equals (other.UnpackFormat) && UnpackFunc.Equals (other.UnpackFunc) && PackFunc.Equals (other.PackFunc);
53 public override bool Equals (object other)
55 return other is AudioFormatInfo && Equals ((AudioFormatInfo) other);
58 public override int GetHashCode ()
60 return this.GetType ().FullName.GetHashCode () ^ Format.GetHashCode () ^ Name.GetHashCode () ^ Description.GetHashCode () ^ Flags.GetHashCode () ^ Endianness.GetHashCode () ^ Width.GetHashCode () ^ Depth.GetHashCode () ^ Silence.GetHashCode () ^ UnpackFormat.GetHashCode () ^ UnpackFunc.GetHashCode () ^ PackFunc.GetHashCode ();
63 private static GLib.GType GType {
64 get { return GLib.GType.Pointer; }