Beispiel #1
0
            public unsafe Source(global::Org.Jcodec.Codecs.Wav.WavInput 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(Source))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/codecs/wav/WavInput;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/codecs/wav/WavInput;)V", __args);
                        return;
                    }

                    if (id_ctor_Lorg_jcodec_codecs_wav_WavInput_ == IntPtr.Zero)
                    {
                        id_ctor_Lorg_jcodec_codecs_wav_WavInput_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/codecs/wav/WavInput;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_codecs_wav_WavInput_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_codecs_wav_WavInput_, __args);
                } finally {
                }
            }
Beispiel #2
0
        static int n_Read_Ljava_nio_ByteBuffer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Jcodec.Codecs.Wav.WavInput __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Wav.WavInput> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Nio.ByteBuffer            p0     = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p0, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.Read(p0);

            return(__ret);
        }
Beispiel #3
0
 static void n_Close(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Codecs.Wav.WavInput __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Wav.WavInput> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Close();
 }
Beispiel #4
0
 static IntPtr n_GetHeader(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Codecs.Wav.WavInput __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Wav.WavInput> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Header));
 }