[Asterisk-code-review] spelling: expect (asterisk[master])
Josh Soref
asteriskteam at digium.com
Sun Nov 7 00:08:10 CDT 2021
Josh Soref has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16925 )
Change subject: spelling: expect
......................................................................
spelling: expect
Change-Id: I5ac24ef4776e4b8818f369ce8504d7dc36c264d7
---
M funcs/func_pitchshift.c
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/16925/1
diff --git a/funcs/func_pitchshift.c b/funcs/func_pitchshift.c
index a2bdfc5..779f064 100644
--- a/funcs/func_pitchshift.c
+++ b/funcs/func_pitchshift.c
@@ -330,14 +330,14 @@
float *sys_magn = fft_data->sys_magn;
double magn, phase, tmp, window, real, imag;
- double freq_per_bin, expct;
+ double freq_per_bin, expect;
long i,k, qpd, index, in_fifo_latency, step_size, fft_frame_size2;
/* set up some handy variables */
fft_frame_size2 = fft_frame_size / 2;
step_size = fft_frame_size / osamp;
freq_per_bin = sample_rate / (double) fft_frame_size;
- expct = 2. * M_PI * (double) step_size / (double) fft_frame_size;
+ expect = 2. * M_PI * (double) step_size / (double) fft_frame_size;
in_fifo_latency = fft_frame_size-step_size;
if (fft_data->gRover == 0) {
@@ -383,7 +383,7 @@
last_phase[k] = phase;
/* subtract expected phase difference */
- tmp -= (double) k * expct;
+ tmp -= (double) k * expect;
/* map delta phase into +/- Pi interval */
qpd = tmp / M_PI;
@@ -436,7 +436,7 @@
tmp = 2. * M_PI * tmp / osamp;
/* add the overlap phase advance back in */
- tmp += (double) k * expct;
+ tmp += (double) k * expect;
/* accumulate delta phase to get bin phase */
sum_phase[k] += tmp;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16925
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I5ac24ef4776e4b8818f369ce8504d7dc36c264d7
Gerrit-Change-Number: 16925
Gerrit-PatchSet: 1
Gerrit-Owner: Josh Soref <jsoref at gmail.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211107/92907e7c/attachment.html>
More information about the asterisk-code-review
mailing list