aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz/dsp.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-02-12 08:53:41 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:02:54 +0100
commit17b61241224631142ffb5e560ae527b853996bba (patch)
treecaecec714baece6f0f153ad6b144d9e44d3c5554 /src/cnetz/dsp.c
parent58ebc152922055581c3f19c4ddd68c324059dbab (diff)
C-Netz: Remove useless -V option
Diffstat (limited to 'src/cnetz/dsp.c')
-rw-r--r--src/cnetz/dsp.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/cnetz/dsp.c b/src/cnetz/dsp.c
index 8e7f291..9b453bb 100644
--- a/src/cnetz/dsp.c
+++ b/src/cnetz/dsp.c
@@ -34,8 +34,6 @@
#include "telegramm.h"
#include "dsp.h"
-extern int voice_deviation;
-
/* test function to mirror received audio from ratio back to radio */
//#define TEST_SCRAMBLE
/* test the audio quality after cascading two scramblers (TEST_SCRAMBLE must be defined) */
@@ -721,12 +719,6 @@ again:
/* pre-emphasis is only used when scrambler is off, see FTZ 171 TR 60 Clause 4 */
if (cnetz->pre_emphasis && !cnetz->scrambler)
pre_emphasis(&cnetz->estate, speech_buffer, speech_length);
- /* change level */
- if (voice_deviation != 1) {
- int j;
- for (j = 0; j < speech_length; j++)
- speech_buffer[j] *= (double)voice_deviation;
- }
speech_pos = 0;
}
/* copy speech as long as we have something left in buffer */
@@ -796,7 +788,7 @@ void unshrink_speech(cnetz_t *cnetz, sample_t *speech_buffer, int count)
factor = cnetz->offset_factor;
for (i = 0; i < count; i++) {
/* change level */
- x = speech_buffer[i] / (double)voice_deviation;
+ x = speech_buffer[i];
/* high-pass to remove low level frequencies, caused by level jump between audio chunks */
y = factor * (y_last + x - x_last);
x_last = x;