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 public partial class AudioResampler : GLib.Opaque {
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);
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;
23 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
24 static extern UIntPtr gst_audio_resampler_get_max_latency(IntPtr raw);
26 public ulong MaxLatency {
28 UIntPtr raw_ret = gst_audio_resampler_get_max_latency(Handle);
29 ulong ret = (ulong) raw_ret;
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);
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;
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);
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));
50 public void Resample(ulong in_frames, ulong out_frames) {
51 Resample (IntPtr.Zero, in_frames, IntPtr.Zero, out_frames);
54 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
55 static extern void gst_audio_resampler_reset(IntPtr raw);
58 gst_audio_resampler_reset(Handle);
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);
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);
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);
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);
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);
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);
86 public AudioResampler(IntPtr raw) : base(raw) {}
88 [DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
89 static extern void gst_audio_resampler_free(IntPtr raw);
91 protected override void Free (IntPtr raw)
93 gst_audio_resampler_free (raw);
96 protected override Action<IntPtr> DisposeUnmanagedFunc {
98 return gst_audio_resampler_free;
103 // Internal representation of the wrapped structure ABI.
104 static GLib.AbiStruct _abi_info = null;
105 static public GLib.AbiStruct abi_info {
107 if (_abi_info == null)
108 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
116 // End of the ABI representation.