Skip to content

Commit

Permalink
ndk: Rename aaudio to audio and drop A prefix
Browse files Browse the repository at this point in the history
All the the other Android APIs implemented in the `ndk` crate drop the
`A` prefix since this is already implied by the "namespace" of the NDK;
there is no need to differentiate in Rust to prevent clashes with
similarly named common symbols.
  • Loading branch information
MarijnS95 committed May 12, 2022
1 parent b3b9a95 commit 5f7d1bf
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 125 deletions.
2 changes: 1 addition & 1 deletion ndk-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jni-sys = "0.3.0"

[features]
test = []
aaudio = []
audio = []
bitmap = []
media = []

Expand Down
2 changes: 1 addition & 1 deletion ndk-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ extern "C" {}
#[link(name = "jnigraphics")]
extern "C" {}

#[cfg(all(feature = "aaudio", target_os = "android"))]
#[cfg(all(feature = "audio", target_os = "android"))]
#[link(name = "aaudio")]
extern "C" {}
1 change: 1 addition & 0 deletions ndk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Add `MediaCodec` and `MediaFormat` bindings. (#216)
- **Breaking:** Upgrade to [`ndk-sys 0.4.0`](../ndk-sys/CHANGELOG.md#040-TODO-YET-UNRELEASED) and use new `enum` newtype wrappers. (#245)
- ndk/native_window: Use `release`/`acquire` for `Drop` and `Clone` respectively. (#207)
- **Breaking:** audio: Rename from `aaudio` to `audio` and drop `A` prefix. (#TODO)

# 0.6.0 (2022-01-05)

Expand Down
4 changes: 2 additions & 2 deletions ndk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ homepage = "https://github.com/rust-windowing/android-ndk-rs"
repository = "https://github.com/rust-windowing/android-ndk-rs"

[features]
all = ["aaudio", "bitmap", "hardware_buffer", "media", "trace", "api-level-30"]
all = ["audio", "bitmap", "hardware_buffer", "media", "trace", "api-level-30"]

aaudio = ["ffi/aaudio", "api-level-26"]
audio = ["ffi/audio", "api-level-26"]
bitmap = ["ffi/bitmap"]
hardware_buffer = ["api-level-26"]
media = ["ffi/media"]
Expand Down
Loading

0 comments on commit 5f7d1bf

Please sign in to comment.