We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8aaca2 commit 2ec802fCopy full SHA for 2ec802f
audio/src/player.rs
@@ -160,8 +160,8 @@ impl Player {
160
ebu_r128 = Some(EbuR128::new(channels as u32, rate, Mode::I)?);
161
} else {
162
if let Some(fade_duration) = self.fade_duration {
163
- // Calculate the Change in Volume per sample..
164
- fade_amount = Some(1.0 / (rate as f32 * fade_duration) / channels as f32);
+ // Calculate the Change in Volume per sample
+ fade_amount = Some(1.0 / (rate as f32 * fade_duration) * channels as f32);
165
}
166
167
if let Some(frames) = frames {
0 commit comments