aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2017-08-06 00:28:18 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2017-10-17 01:08:53 +0300
commit43e508b0b607054d2a720e8d9c3a11947d6f798d (patch)
treec9d70e031a21ec9dcf45ab1d18727f267724c30f /src/util.h
parentfcb5986d9d21d923db2480be5089168fc1d1fcd2 (diff)
downloadatracdenc-43e508b0b607054d2a720e8d9c3a11947d6f798d.tar.gz
Simplest gain control - scale first part of frame if the attack transient was detected
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/util.h b/src/util.h
index 91b3bf8..e0994f6 100644
--- a/src/util.h
+++ b/src/util.h
@@ -62,12 +62,6 @@ inline uint16_t GetFirstSetBit(uint32_t x) {
}
template<class T>
-inline uint16_t Log2FloatToIdx(T x, uint16_t shift) {
- T t = x * shift;
- return GetFirstSetBit(std::trunc(t));
-}
-
-template<class T>
inline T CalcMedian(T* in, uint32_t len) {
std::vector<T> tmp(in, in+len);
std::sort(tmp.begin(), tmp.end());