bevy/crates
Carter Anderson 786262a211
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-11 22:08:10 +01:00
..
bevy_a11y Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_animation Incorporate all node weights in additive blending (#16279) 2024-11-11 21:50:47 +01:00
bevy_app Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_asset Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_audio AudioPlayer::new() (#16287) 2024-11-11 22:08:10 +01:00
bevy_color Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_core Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_core_pipeline Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_derive Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_dev_tools Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_diagnostic Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_dylib Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_ecs Make ComponentTicks field public (#16269) 2024-11-11 21:50:47 +01:00
bevy_encase_derive Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_gilrs Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_gizmos Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_gltf Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_hierarchy Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_image Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_input Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_internal Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_log Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_macro_utils Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_math Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_mesh Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_mikktspace Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_pbr Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_picking Fix typos in bevy_picking module docs (#16265) 2024-11-11 22:08:10 +01:00
bevy_ptr Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_reflect Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_remote Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_render Make BinnedRenderPhase fields for accessing batchable and unbatchable entities public (#16142) 2024-11-11 21:50:47 +01:00
bevy_scene Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_sprite Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_state Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_tasks Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_text Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_time Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_transform Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_ui UiImage -> ImageNode, UiImageSize -> ImageNodeSize (#16271) 2024-11-11 22:08:04 +01:00
bevy_utils Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_window Release 0.15.0-rc.3 2024-11-05 23:26:31 +01:00
bevy_winit properly flag using CustomCursor::Url in wasm (#16255) 2024-11-11 21:50:47 +01:00