blob: 35e6f4ac4e3d3a0c7c8f6ef67b423ce89e81c51d [file] [log] [blame]
/* 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);
}