bevy/examples/audio
krunchington 1e603558e6 Update sprite_slice, spatial_audio_3d, spatial_audio_2d examples to use children macro (#18318)
# Objective

Contributes to #18238 
Updates the `sprite_slice`, `spatial_audio_3d` and `spatial_audio_2d`
examples to use the `children!` macro.

## Solution

Updates examples to use the Improved Spawning API merged in
https://github.com/bevyengine/bevy/pull/17521

## Testing

- Did you test these changes? If so, how?
- Opened the examples before and after and verified the same behavior
was observed. I did this on Ubuntu 24.04.2 LTS using `--features
wayland`.
- Are there any parts that need more testing?
- Other OS's and features can't hurt, but this is such a small change it
shouldn't be a problem.
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
  - Run the examples yourself with and without these changes.
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?
  - see above

---

## Showcase

n/a

## Migration Guide

n/a
2025-03-24 00:09:29 +01:00
..
audio_control.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
audio.rs AudioPlayer::new() (#16287) 2024-11-08 01:51:50 +00:00
decodable.rs Support decibels in bevy_audio::Volume (#17605) 2025-02-10 21:26:43 +00:00
pitch.rs Renamed EventWriter::send methods to write. (#17977) 2025-02-23 21:18:52 +00:00
soundtrack.rs Support decibels in bevy_audio::Volume (#17605) 2025-02-10 21:26:43 +00:00
spatial_audio_2d.rs Update sprite_slice, spatial_audio_3d, spatial_audio_2d examples to use children macro (#18318) 2025-03-24 00:09:29 +01:00
spatial_audio_3d.rs Update sprite_slice, spatial_audio_3d, spatial_audio_2d examples to use children macro (#18318) 2025-03-24 00:09:29 +01:00