Release 1.22.7
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Audio / AudioResampler.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         public partial class AudioResampler : GLib.Opaque {
13
14                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15                 static extern UIntPtr gst_audio_resampler_get_in_frames(IntPtr raw, UIntPtr out_frames);
16
17                 public ulong GetInFrames(ulong out_frames) {
18                         UIntPtr raw_ret = gst_audio_resampler_get_in_frames(Handle, new UIntPtr (out_frames));
19                         ulong ret = (ulong) raw_ret;
20                         return ret;
21                 }
22
23                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
24                 static extern UIntPtr gst_audio_resampler_get_max_latency(IntPtr raw);
25
26                 public ulong MaxLatency { 
27                         get {
28                                 UIntPtr raw_ret = gst_audio_resampler_get_max_latency(Handle);
29                                 ulong ret = (ulong) raw_ret;
30                                 return ret;
31                         }
32                 }
33
34                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35                 static extern UIntPtr gst_audio_resampler_get_out_frames(IntPtr raw, UIntPtr in_frames);
36
37                 public ulong GetOutFrames(ulong in_frames) {
38                         UIntPtr raw_ret = gst_audio_resampler_get_out_frames(Handle, new UIntPtr (in_frames));
39                         ulong ret = (ulong) raw_ret;
40                         return ret;
41                 }
42
43                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
44                 static extern void gst_audio_resampler_resample(IntPtr raw, IntPtr in_param, UIntPtr in_frames, IntPtr out_param, UIntPtr out_frames);
45
46                 public void Resample(IntPtr in_param, ulong in_frames, IntPtr out_param, ulong out_frames) {
47                         gst_audio_resampler_resample(Handle, in_param, new UIntPtr (in_frames), out_param, new UIntPtr (out_frames));
48                 }
49
50                 public void Resample(ulong in_frames, ulong out_frames) {
51                         Resample (IntPtr.Zero, in_frames, IntPtr.Zero, out_frames);
52                 }
53
54                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
55                 static extern void gst_audio_resampler_reset(IntPtr raw);
56
57                 public void Reset() {
58                         gst_audio_resampler_reset(Handle);
59                 }
60
61                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
62                 static extern bool gst_audio_resampler_update(IntPtr raw, int in_rate, int out_rate, IntPtr options);
63
64                 public bool Update(int in_rate, int out_rate, Gst.Structure options) {
65                         bool raw_ret = gst_audio_resampler_update(Handle, in_rate, out_rate, options == null ? IntPtr.Zero : options.Handle);
66                         bool ret = raw_ret;
67                         return ret;
68                 }
69
70                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
71                 static extern IntPtr gst_audio_resampler_new(int method, int flags, int format, int channels, int in_rate, int out_rate, IntPtr options);
72
73                 public static Gst.Audio.AudioResampler New(Gst.Audio.AudioResamplerMethod method, Gst.Audio.AudioResamplerFlags flags, Gst.Audio.AudioFormat format, int channels, int in_rate, int out_rate, Gst.Structure options) {
74                         IntPtr raw_ret = gst_audio_resampler_new((int) method, (int) flags, (int) format, channels, in_rate, out_rate, options == null ? IntPtr.Zero : options.Handle);
75                         Gst.Audio.AudioResampler ret = raw_ret == IntPtr.Zero ? null : (Gst.Audio.AudioResampler) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Audio.AudioResampler), true);
76                         return ret;
77                 }
78
79                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
80                 static extern void gst_audio_resampler_options_set_quality(int method, uint quality, int in_rate, int out_rate, IntPtr options);
81
82                 public static void OptionsSetQuality(Gst.Audio.AudioResamplerMethod method, uint quality, int in_rate, int out_rate, Gst.Structure options) {
83                         gst_audio_resampler_options_set_quality((int) method, quality, in_rate, out_rate, options == null ? IntPtr.Zero : options.Handle);
84                 }
85
86                 public AudioResampler(IntPtr raw) : base(raw) {}
87
88                 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
89                 static extern void gst_audio_resampler_free(IntPtr raw);
90
91                 protected override void Free (IntPtr raw)
92                 {
93                         gst_audio_resampler_free (raw);
94                 }
95
96                 protected override Action<IntPtr> DisposeUnmanagedFunc {
97                         get {
98                                 return gst_audio_resampler_free;
99                         }
100                 }
101
102
103                 // Internal representation of the wrapped structure ABI.
104                 static GLib.AbiStruct _abi_info = null;
105                 static public GLib.AbiStruct abi_info {
106                         get {
107                                 if (_abi_info == null)
108                                         _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
109                                         });
110
111                                 return _abi_info;
112                         }
113                 }
114
115
116                 // End of the ABI representation.
117
118 #endregion
119         }
120 }