Ejemplo n.º 1
0
        public static Gst.Audio.AudioDownmixMeta BufferGetAudioDownmixMetaForChannels(Gst.Buffer buffer, Gst.Audio.AudioChannelPosition[] to_position, int to_channels)
        {
            int cnt_to_position = to_position == null ? 0 : to_position.Length;

            int[] native_to_position = new int [cnt_to_position];
            for (int i = 0; i < cnt_to_position; i++)
            {
                native_to_position [i] = (int)to_position[i];
            }
            IntPtr raw_ret = gst_buffer_get_audio_downmix_meta_for_channels(buffer == null ? IntPtr.Zero : buffer.Handle, native_to_position, to_channels);

            Gst.Audio.AudioDownmixMeta ret = Gst.Audio.AudioDownmixMeta.New(raw_ret);
            return(ret);
        }
Ejemplo n.º 2
0
        public static Gst.Audio.AudioDownmixMeta BufferAddAudioDownmixMeta(Gst.Buffer buffer, Gst.Audio.AudioChannelPosition[] from_position, int from_channels, Gst.Audio.AudioChannelPosition[] to_position, int to_channels, float matrix)
        {
            int cnt_from_position = from_position == null ? 0 : from_position.Length;

            int[] native_from_position = new int [cnt_from_position];
            for (int i = 0; i < cnt_from_position; i++)
            {
                native_from_position [i] = (int)from_position[i];
            }
            int cnt_to_position = to_position == null ? 0 : to_position.Length;

            int[] native_to_position = new int [cnt_to_position];
            for (int i = 0; i < cnt_to_position; i++)
            {
                native_to_position [i] = (int)to_position[i];
            }
            IntPtr raw_ret = gst_buffer_add_audio_downmix_meta(buffer == null ? IntPtr.Zero : buffer.Handle, native_from_position, from_channels, native_to_position, to_channels, matrix);

            Gst.Audio.AudioDownmixMeta ret = Gst.Audio.AudioDownmixMeta.New(raw_ret);
            return(ret);
        }