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

                    if (id_ctor_Lorg_jcodec_codecs_wav_WavOutput_ == IntPtr.Zero)
                    {
                        id_ctor_Lorg_jcodec_codecs_wav_WavOutput_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/codecs/wav/WavOutput;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_codecs_wav_WavOutput_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_codecs_wav_WavOutput_, __args);
                } finally {
                }
            }
Пример #2
0
 static void n_Write_Ljava_nio_ByteBuffer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Codecs.Wav.WavOutput __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Wav.WavOutput> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Nio.ByteBuffer             p0     = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Write(p0);
 }
Пример #3
0
 static void n_Close(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Codecs.Wav.WavOutput __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Wav.WavOutput> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Close();
 }