bevy/examples/audio
Zachary Harrold 3c829d7f68
Remove everything except Instant from bevy_utils::time (#17158)
# Objective

- Contributes to #11478
- Contributes to #16877

## Solution

- Removed everything except `Instant` from `bevy_utils::time`

## Testing

- CI

---

## Migration Guide

If you relied on any of the following from `bevy_utils::time`:

- `Duration`
- `TryFromFloatSecsError`

Import these directly from `core::time` regardless of platform target
(WASM, mobile, etc.)

If you relied on any of the following from `bevy_utils::time`:

- `SystemTime`
- `SystemTimeError`

Instead import these directly from either `std::time` or `web_time` as
appropriate for your target platform.

## Notes

`Duration` and `TryFromFloatSecsError` are both re-exports from
`core::time` regardless of whether they are used from `web_time` or
`std::time`, so there is no value gained from re-exporting them from
`bevy_utils::time` as well. As for `SystemTime` and `SystemTimeError`,
no Bevy internal crates or examples rely on these types. Since Bevy
doesn't have a `Time<Wall>` resource for interacting with wall-time (and
likely shouldn't need one), I think removing these from `bevy_utils`
entirely and waiting for a use-case to justify inclusion is a reasonable
path forward.
2025-01-05 20:36:08 +00:00
..
audio_control.rs Fix panics in scene_viewer and audio_control (#16983) 2024-12-26 22:10:34 +00:00
audio.rs AudioPlayer::new() (#16287) 2024-11-08 01:51:50 +00:00
decodable.rs Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
pitch.rs Migrate audio to required components (#15573) 2024-10-01 22:43:29 +00:00
soundtrack.rs Add ability to mute audio sinks (#16813) 2024-12-15 19:19:16 +00:00
spatial_audio_2d.rs AudioPlayer::new() (#16287) 2024-11-08 01:51:50 +00:00
spatial_audio_3d.rs Add ability to mute audio sinks (#16813) 2024-12-15 19:19:16 +00:00