agdk-cpal: Use cpal git master

I was mistaken recently, thinking that cpal's dev-dependency on ndk-glue
was somehow being inherited by the example. Actually the real issue was
that cpal 0.13.5 has a regular _dependency_ on ndk-glue, which is a much
simpler explanation for why we were seeing a crash.

This updates the example to just use the master branch of cpal, which we'll
need until there is a new release of cpal.
This commit is contained in:
Robert Bragg
2022-08-14 00:08:42 +01:00
parent 3d1b1c5cb9
commit 2a9ed44d93
+4 -2
View File
@@ -9,12 +9,14 @@ edition = "2021"
log = "0.4"
android_logger = "0.11.0"
android-activity = { path="../../android-activity", features = ["game-activity"] }
cpal = { version = "0.13" }
cpal = "0.13"
atomic_float = "0.1"
anyhow = "1"
# We currently need to use cpal master which doesn't have ndk-glue as a dependency
# and is also updated to ndk 0.7
[patch.crates-io]
cpal = { git = "https://github.com/rib/cpal", branch = "no-ndk-glue-dev-dependency" }
cpal = { git = "https://github.com/RustAudio/cpal", commit = "9b7bb339650" }
[lib]
name="main"