Ejemplo n.º 1
0
        public unsafe AudioBuffer(global::Org.Jcodec.Common.Model.AudioBuffer p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                if (GetType() != typeof(AudioBuffer))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/common/model/AudioBuffer;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/common/model/AudioBuffer;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_common_model_AudioBuffer_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_common_model_AudioBuffer_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/common/model/AudioBuffer;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_common_model_AudioBuffer_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_common_model_AudioBuffer_, __args);
            } finally {
            }
        }
Ejemplo n.º 2
0
 static IntPtr n_GetData(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.Model.AudioBuffer __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.AudioBuffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Data));
 }
Ejemplo n.º 3
0
 static int n_GetNFrames(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.Model.AudioBuffer __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.AudioBuffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.NFrames);
 }