blob: 1ee5c81a225768e5fb2dc5d513b1931df13aa665 [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);
}