diff options
author | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-04-10 14:34:46 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-04-10 14:35:32 +0300 |
commit | 403004a85e7bdd7567d3381d592ef00e5914b6ed (patch) | |
tree | 93caa4153b50799f4e784beaad9b075330ae4648 /audio/audiofx | |
parent | a45581987189b45bc9d9d55750d0181806d6fe1b (diff) |
fix typos
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1170>
Diffstat (limited to 'audio/audiofx')
-rw-r--r-- | audio/audiofx/src/audioloudnorm/imp.rs | 6 | ||||
-rw-r--r-- | audio/audiofx/tests/hrtfrender.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs index d6740171..183b7c1c 100644 --- a/audio/audiofx/src/audioloudnorm/imp.rs +++ b/audio/audiofx/src/audioloudnorm/imp.rs @@ -348,9 +348,9 @@ impl State { true_peak ); - // Difference between targetted and calculated LUFS loudness as a linear scalefactor. + // Difference between targeted and calculated LUFS loudness as a linear scalefactor. let offset = f64::powf(10., (self.target_i - global) / 20.); - // What the new peak would be after adjusting for the targetted loudness. + // What the new peak would be after adjusting for the targeted loudness. let offset_tp = true_peak * offset; // If the new peak would be more quiet than targeted one, take it. Otherwise only go as @@ -705,7 +705,7 @@ impl State { self.process_fill_final_frame(imp, num_samples, FRAME_SIZE); } - // Now repeatadly run the limiter, output the output gain, update the gains, copy further + // Now repeatedly run the limiter, output the output gain, update the gains, copy further // data from the buf to limiter_buf until we have output everything. // // At this point we have to output 3s - (FRAME_SIZE - num_samples) diff --git a/audio/audiofx/tests/hrtfrender.rs b/audio/audiofx/tests/hrtfrender.rs index 8dccb147..1c4ff997 100644 --- a/audio/audiofx/tests/hrtfrender.rs +++ b/audio/audiofx/tests/hrtfrender.rs @@ -156,7 +156,7 @@ fn test_hrtfrender_explicit_spatial_objects() { } #[test] -// Caps negotation should fail if we have mismatch between input channels and +// Caps negotiation should fail if we have mismatch between input channels and // of objects that we set via property. In this test case input has 6 channels // but the number of spatial objects set is 2. fn test_hrtfrender_caps_negotiation_fail() { |