Move Volume and GlobalVolume to own file#16838
Move Volume and GlobalVolume to own file#16838alice-i-cecile merged 1 commit intobevyengine:mainfrom
Conversation
93ef1ec to
39ac5b2
Compare
39ac5b2 to
1e39675
Compare
SolarLiner
left a comment
There was a problem hiding this comment.
We should put a pin on improving the documentation of the Volume newtype, because it's unclear from the doc comments which scale we are using (linear can be inferred from the debug_assert!, but it would be nice to make it explicit).
Additionally, we should add a second constructor for setting the volume in decibels.
Absolutely. We can look at these in a follow up PR since this PR is just a simple move around. FWIW, I also noticed this from a user perspective. The constructor just says |
# Objective - Prework for reviving bevyengine#9582. ## Solution - Move the two types to volume.rs and made it compile. - Also `#[reflect(Debug)]` on `Volume` while I'm here. ## Testing - Ran example locally. - Rely on CI.
# Objective - Prework for reviving bevyengine#9582. ## Solution - Move the two types to volume.rs and made it compile. - Also `#[reflect(Debug)]` on `Volume` while I'm here. ## Testing - Ran example locally. - Rely on CI.
Objective
VolumeLevelto use Decibel and Amplitude Ratio Units #9582.Solution
#[reflect(Debug)]onVolumewhile I'm here.Testing