Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AAudio interface #27

Merged
merged 2 commits into from
May 23, 2020
Merged

Conversation

JasperDeSutter
Copy link
Contributor

Adds bindings for Android NDK's AAudio interface (part of #22).
Also fixes an issue with previous PR where *mut JNIEnv pointers were getting dereferenced which doesn't as I expected.

@dvc94ch
Copy link
Contributor

dvc94ch commented May 23, 2020

We need tests and examples, so that we can run miri to detect ub one day. But for the time being they still don't support ffi calls.

@dvc94ch dvc94ch merged commit 977ac7e into rust-mobile:master May 23, 2020
@JasperDeSutter
Copy link
Contributor Author

@dvc94ch Makes sense, I'm wondering how the testing setup would look like. I suppose tests would need to run on an Android emulator to have access to the native binaries. Do you have anything in mind already?

@dvc94ch
Copy link
Contributor

dvc94ch commented May 23, 2020

Not really, I just know I had issues with segfaults when using jni-bindgen and I assume it's because our safe wrappers invoke ub somehow. There are some links in #28, but that's as far as my research went.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants