bevy/examples/mobile
Carter Anderson 013e11a14f
AudioPlayer::new() (#16287)
# Objective

`AudioPlayer::<AudioSource>(assets.load("audio.mp3"))` is awkward and
complicated to type because the `AudioSource` generic type cannot be
elided. This is especially annoying because `AudioSource` is used in the
majority of cases. Most users don't need to think about it.

## Solution

Add an `AudioPlayer::new()` function that is hard-coded to
`AudioSource`, allowing `AudioPlayer::new(assets.load("audio.mp3"))`.
Prefer using that in the relevant places.
2024-11-08 01:51:50 +00:00
..
android_basic Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
android_example Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
android_example_native Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
bevy_mobile_example.xcodeproj Upgrade to wgpu 23 (#15988) 2024-11-05 21:18:48 +00:00
ios-src IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
src AudioPlayer::new() (#16287) 2024-11-08 01:51:50 +00:00
.gitignore Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
build_rust_deps.sh Fix alignment on ios simulator (#10178) 2023-10-21 22:19:46 +00:00
Cargo.toml Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
Makefile Improve selection of iOS device in mobile example (#9282) 2023-10-08 20:57:41 +00:00