public static void AudioFormatFillSilence(Gst.Audio.AudioFormatInfo info, byte[] dest) { IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc(info); gst_audio_format_fill_silence(native_info, dest, new UIntPtr((ulong)(dest == null ? 0 : dest.Length))); Marshal.FreeHGlobal(native_info); }
public static Gst.Audio.AudioFormatInfo AudioFormatGetInfo(Gst.Audio.AudioFormat format) { IntPtr raw_ret = gst_audio_format_get_info((int)format); Gst.Audio.AudioFormatInfo ret = Gst.Audio.AudioFormatInfo.New(raw_ret); return(ret); }
void InvokeNative(Gst.Audio.AudioFormatInfo info, Gst.Audio.AudioPackFlags flags, byte[] src, byte[] data) { IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc(info); native_cb(native_info, (int)flags, src, data, (data == null ? 0 : data.Length)); Marshal.FreeHGlobal(native_info); }