diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-07-27 13:35:58 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-07-27 13:35:58 +0300 |
commit | dcb36832329fde0113a41b80ebdb5efd28ead68d (patch) | |
tree | d218c1202246b93a8d8d1138703a2e6fa13953a1 /gst-plugin-audiofx/src/audioecho.rs | |
parent | bdfc95e6e8402b614f0fee786628be97d3480201 (diff) |
Run everything through latest rustfmt
Diffstat (limited to 'gst-plugin-audiofx/src/audioecho.rs')
-rw-r--r-- | gst-plugin-audiofx/src/audioecho.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index 8e96135d5..eabfe9fc0 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -161,7 +161,8 @@ impl AudioEcho { state: &mut State, settings: &Settings, ) { - let delay_frames = (settings.delay as usize) * (state.info.channels() as usize) + let delay_frames = (settings.delay as usize) + * (state.info.channels() as usize) * (state.info.rate() as usize) / (gst::SECOND_VAL as usize); for (i, (o, e)) in data.iter_mut().zip(state.buffer.iter(delay_frames)) { |