From 4bc3dc6543d6f776b348f14a46bb8d89a3d46dc1 Mon Sep 17 00:00:00 2001
From: Josh Soref <jsoref@users.noreply.github.com>
Date: Sat, 30 Oct 2021 21:04:37 -0400
Subject: [PATCH] bridges: Spelling fixes

Correct typos of the following word families:

multiplication
potentially
iteration
interaction
virtual
synthesis
convolve
initializes
overlap

ASTERISK-29714

Change-Id: Ia40f1aca8f2996ab407c6ed9d24cb10a67c6684b
(cherry picked from commit 2a8fb4695ef87c363fc49f142b696ceed85a7f98)
---
 bridges/bridge_softmix.c                               |  2 +-
 bridges/bridge_softmix/bridge_softmix_binaural.c       |  4 ++--
 .../bridge_softmix/include/bridge_softmix_internal.h   | 10 +++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c
index c7b1d6c8ba..f61732b6e2 100644
--- a/bridges/bridge_softmix.c
+++ b/bridges/bridge_softmix.c
@@ -1864,7 +1864,7 @@ static int softmix_mixing_loop(struct ast_bridge *bridge)
 						softmix_data->internal_mixing_interval, bridge_channel, 1, -1, -1, -1);
 			}
 
-			/* If stat_iteration_counter is 0, then collect statistics during this mixing interation */
+			/* If stat_iteration_counter is 0, then collect statistics during this mixing interaction */
 			if (!stat_iteration_counter) {
 				gather_softmix_stats(&stats, softmix_data, bridge_channel);
 			}
diff --git a/bridges/bridge_softmix/bridge_softmix_binaural.c b/bridges/bridge_softmix/bridge_softmix_binaural.c
index 3a036cd90b..87b40353a8 100644
--- a/bridges/bridge_softmix/bridge_softmix_binaural.c
+++ b/bridges/bridge_softmix/bridge_softmix_binaural.c
@@ -103,7 +103,7 @@ int do_convolve(struct convolve_channel *chan, int16_t *in_samples,
 	}
 	fftw_execute(chan->fftw_plan);
 
-	/* Imaginary mulitplication (frequency space). */
+	/* Imaginary multiplication (frequency space). */
 	/* First FFTW result has never an imaginary part. */
 	chan->fftw_in[0] = chan->fftw_out[0] * chan->hrtf[0];
 	for (i = 1; i < (hrtf_length / 2); i++) {
@@ -128,7 +128,7 @@ int do_convolve(struct convolve_channel *chan, int16_t *in_samples,
 		chan->fftw_out[i] = chan->fftw_out[i] / (hrtf_length / 2);
 	}
 
-	/* Save the block for overlapp add in the next itteration. */
+	/* Save the block for overlap add in the next iteration. */
 	for (i = 0; i < in_sample_size; i++) {
 		chan->overlap_add[i] += chan->fftw_out[i];
 	}
diff --git a/bridges/bridge_softmix/include/bridge_softmix_internal.h b/bridges/bridge_softmix/include/bridge_softmix_internal.h
index ca70c3cb39..374a6cc37d 100644
--- a/bridges/bridge_softmix/include/bridge_softmix_internal.h
+++ b/bridges/bridge_softmix/include/bridge_softmix_internal.h
@@ -98,7 +98,7 @@ struct convolve_channel_pair {
 };
 
 struct convolve_data {
-	/*! A count of all channels potentialy having input data for the conference. */
+	/*! A count of all channels potentially having input data for the conference. */
 	int number_channels;
 	/*! Will set to true if there is at least one binaural output.
 	 * Only if set to true data will be convolved. */
@@ -304,7 +304,7 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
 		unsigned int chan_pos, unsigned int chan_side, unsigned int default_sample_size);
 
 /*!
- * \brief Initializies all data needed for binaural audio processing of a channel pair
+ * \brief Initializes all data needed for binaural audio processing of a channel pair
  * (left and right).
  *
  * \param cchan_pair The channel pair used for binaural audio processing.
@@ -319,7 +319,7 @@ int init_convolve_channel_pair(struct convolve_channel_pair *cchan_pair,
 		unsigned int hrtf_len, unsigned int chan_pos, unsigned int default_sample_size);
 
 /*!
- * \brief Preinits a specific number of channels (CONVOVLE_CHANNEL_PREALLOC)
+ * \brief Preinits a specific number of channels (CONVOLVE_CHANNEL_PREALLOC)
  * at the beginning of a conference.
  *
  * \param data Contains all channels and data needed for binaural processing
@@ -354,7 +354,7 @@ void free_convolve_channel_pair(struct convolve_channel_pair *cchan_pair);
 void free_convolve_data(struct convolve_data *data);
 
 /*!
- * \brief Joins a channel into a virtual enviroment build with the help of binaural sythesis.
+ * \brief Joins a channel into a virtual enviroment build with the help of binaural synthesis.
  *
  * \param data Contains all channels and data needed for binaural processing
  *  (e.g. head related transfer functions).
@@ -388,7 +388,7 @@ void softmix_process_write_binaural_audio(struct softmix_channel *sc,
 		unsigned int default_sample_size);
 
 /*!
- * \brief Checks if a position change in the virual enviroment is requested by one of
+ * \brief Checks if a position change in the virtual enviroment is requested by one of
  * the participants.
  *
  * \param bridge The conference bridge.
-- 
GitLab