cpal/src
Marijn Suijten f8b05ade39 android: Migrate from ndk-glue to ndk-context
`ndk-glue` suffers one fatal flaw: it's "only" supposed to be used by
the crate providing `fn main()` and only supposed to end up in the
dependency graph once as it has `static` globals which get duplicated
across versions.

In the current case with `winit 0.26` still on `ndk-glue 0.5` but
`cpal` on `ndk-glue 0.6` it'll always panic in `fn native_activity()` as
the `static` globals on this version is not initialized.

Introducing `ndk-context`: a crate that holds these `static`s, with the
intention/premise to not see a breaking release /ever/ and make this a
problem of the past.  The crate is currently initialized with the VM and
Android Context on `ndk-glue` 0.5.1 and 0.6.1 (0.4.1 pending) making it
compatible with whatever is current, and the possibility for backporting
to older `ndk-glue` versions too.

See also:
https://github.com/rust-windowing/android-ndk-rs/issues/211
https://github.com/rust-windowing/android-ndk-rs/pull/223
2022-02-15 16:52:20 +01:00
..
host android: Migrate from ndk-glue to ndk-context 2022-02-15 16:52:20 +01:00
platform Fix some typo and warnings 2021-06-29 11:30:26 -04:00
error.rs Fix some typo and warnings 2021-06-29 11:30:26 -04:00
lib.rs Fix some typo and warnings 2021-06-29 11:30:26 -04:00
samples_formats.rs Faster sample format conversion (#618) 2022-01-14 12:23:30 +01:00
traits.rs Fix some typo and warnings 2021-06-29 11:30:26 -04:00