mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:48:54 +02:00
Minor cleanup
This commit is contained in:
parent
82d13090f9
commit
8822b1bfa4
1 changed files with 4 additions and 4 deletions
|
@ -6,12 +6,12 @@
|
||||||
// Copyright 2017 High Fidelity, Inc.
|
// Copyright 2017 High Fidelity, Inc.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "AudioGate.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <cstdlib>
|
|
||||||
#include "AudioDynamics.h"
|
#include "AudioDynamics.h"
|
||||||
|
#include "AudioGate.h"
|
||||||
|
|
||||||
// log2 domain headroom bits above 0dB (int32_t)
|
// log2 domain headroom bits above 0dB (int32_t)
|
||||||
static const int LOG2_HEADROOM_Q30 = 1;
|
static const int LOG2_HEADROOM_Q30 = 1;
|
||||||
|
@ -418,7 +418,7 @@ void GateMono<N>::process(int16_t* input, int16_t* output, int numFrames) {
|
||||||
_dc.process(x);
|
_dc.process(x);
|
||||||
|
|
||||||
// peak detect
|
// peak detect
|
||||||
int32_t peak = std::abs(x);
|
int32_t peak = abs(x);
|
||||||
|
|
||||||
// convert to log2 domain
|
// convert to log2 domain
|
||||||
peak = fixlog2(peak);
|
peak = fixlog2(peak);
|
||||||
|
|
Loading…
Reference in a new issue