C++程序  |  15行  |  359 B

/* 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);
}