bevy/examples/audio
Liam Gallagher dff071c2a8
Ability to set a Global Volume (#7706)
# Objective

Adds a new resource to control a global volume.
Fixes #7690

---

## Solution

Added a new resource to control global volume, this is then multiplied
with an audio sources volume to get the output volume, individual audio
sources can opt out of this my enabling the `absolute_volume` field in
`PlaybackSettings`.

---

## Changelog

### Added
- `GlobalVolume` a resource to control global volume (in prelude).
- `global_volume` field to `AudioPlugin` or setting the initial value of
`GlobalVolume`.
- `Volume` enum that can be `Relative` or `Absolute`.
- `VolumeLevel` struct for defining a volume level.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2023-04-10 14:08:43 +00:00
..
audio.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
audio_control.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
decodable.rs Ability to set a Global Volume (#7706) 2023-04-10 14:08:43 +00:00
spatial_audio_2d.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
spatial_audio_3d.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00