mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 10:33:08 +00:00
013e11a14f
# 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. |
||
---|---|---|
.. | ||
android_basic | ||
android_example | ||
android_example_native | ||
bevy_mobile_example.xcodeproj | ||
ios-src | ||
src | ||
.gitignore | ||
build_rust_deps.sh | ||
Cargo.toml | ||
Makefile |