bevy/crates/bevy_audio/src
irate c29a9729a4
Remove the ability to ignore global volume (#11092)
# Objective

The ability to ignore the global volume doesn't seem desirable and
complicates the API.

#7706 added global volume and the ability to ignore it, but there was no
further discussion about whether that's useful. Feel free to discuss
here :)

## Solution

Replace the `Volume` type's functionality with the `VolumeLevel`. Remove
`VolumeLevel`.

I also removed `DerefMut` derive that effectively made the volume `pub`
and actually ensured that the volume isn't set below `0` even in release
builds.

## Migration Guide

The option to ignore the global volume using `Volume::Absolute` has been
removed and `Volume` now stores the volume level directly, removing the
need for the `VolumeLevel` struct.
2024-01-15 15:31:54 +00:00
..
audio_output.rs Remove the ability to ignore global volume (#11092) 2024-01-15 15:31:54 +00:00
audio_source.rs Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
audio.rs Remove the ability to ignore global volume (#11092) 2024-01-15 15:31:54 +00:00
lib.rs Remove the ability to ignore global volume (#11092) 2024-01-15 15:31:54 +00:00
pitch.rs More ergonomic spatial audio (#9800) 2023-10-09 19:43:56 +00:00
sinks.rs More ergonomic spatial audio (#9800) 2023-10-09 19:43:56 +00:00