zmerp
zmerp
I thought of another hack: make `NATIVE_ACTIVITY` public (or create a unsafe setter). This way we can import multiple ndk-glue versions and for each additional one set the the native...
I was thinking about something like this: Cargo.toml: ``` ndk-glue = "0.5" ndk-glue-4 = { package = "ndk-glue", version = "0.4" } ``` main: ```rust let native_activity_ptr = ndk_glue::native_activity().ptr().as_ptr(); unsafe...
> In the end it's probably best to just update oboe to a newer ndk-glue? I already sent a PR for oboe some days ago, but your last release made...
Between @MarijnS95 and @dvc94ch ideas I prefer the latter. While @MarijnS95 idea is cleaner, @dvc94ch idea is the more practical IMO. Just one nit, I think "ndk-context" is clearer than...
It turns out that splitting off ndk-context from ndk-glue in not clean at all. ndk-context gets contaminated for example with the Rect and Event structs. I think we should introduce...
@dvc94ch ok, maybe it's better for you to push this forward. But where should the `poll_events()` live? should it be moved inside winit?
@MarijnS95 The problem is that `result` is not used in a regular way. `AMediaCodec_dequeueOutputBuffer` documentation says that 0 or positive values are the buffer index, negative values are error or...
I've replaced `.map(|()| unreachable!())` with the more idiomatic `Err([...].unwrap_err())`
The MediaCodec API in ndk v0.7 is flat out broken without this PR.
@MarijnS95 ping, I'm using my branch in production and it works, I think this PR can be merged.