summaryrefslogtreecommitdiff
path: root/cras/src/dsp/drc_math.c
blob: 1ee5c81a225768e5fb2dc5d513b1931df13aa665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "drc_math.h"

float db_to_linear[201]; /* from -100dB to 100dB */

void drc_math_init()
{
	int i;
	for (i = -100; i <= 100; i++)
		db_to_linear[i + 100] = pow(10, i / 20.0);
}