bevy/crates/bevy_audio/src
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 Ability to set a Global Volume (#7706) 2023-04-10 14:08:43 +00:00
audio_output.rs Ability to set a Global Volume (#7706) 2023-04-10 14:08:43 +00:00
audio_source.rs Basic spatial audio (#6028) 2023-02-20 15:31:07 +00:00
lib.rs Ability to set a Global Volume (#7706) 2023-04-10 14:08:43 +00:00
sinks.rs Expose AudioSink::empty() (#8145) 2023-04-05 21:54:14 +00:00