/*
 * Purpose: dB to linear conversion tables for vmix
 */
/*
 * This file is part of Open Sound System
 *
 * Copyright (C) 4Front Technologies 1996-2007.
 *
 * This software is released under CDDL 1.0 source license for operating systems
 * that have their full source code available under the BSD or CDDL licenses.
 *
 * See the COPYING file included in the main directory of this source
 * distribution. Please contact sales@opensound.com for further info.
 */

/*
 * NOTE! This is not the development version of this file. Please download the
 * sources of the latest Open Sound System version from 
 * http://developer.opensound.com/sources if you plan to make any changes
 * to the software.
 */

/*
 * Attenuation table for dB->linear conversion. Indexed in steps of 0.5 dB.
 * Table size is 25 dB (first entry is handled as mute).
 */

const float vmix_db_table[DB_SIZE + 1] = {

  0.0 /* MUTE */ , 0.0035481, 0.0039811, 0.0044668, 0.0050119,
  0.0056234, 0.0063096, 0.0070795, 0.0079433, 0.0089125,
  0.01, 0.01122, 0.012589, 0.014125, 0.015849,
  0.017783, 0.019953, 0.022387, 0.025119, 0.028184,
  0.031623, 0.035481, 0.039811, 0.044668, 0.050119,
  0.056234, 0.063096, 0.070795, 0.079433, 0.089125,
  0.1, 0.1122, 0.12589, 0.14125, 0.15849,
  0.17783, 0.19953, 0.22387, 0.25119, 0.28184,
  0.31623, 0.35481, 0.39811, 0.44668, 0.50119,
  0.56234, 0.63096, 0.70795, 0.79433, 0.89125,
  1.0				/* Full level */
};
