/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * * * * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * * by the Xiph.Org Foundation https://xiph.org/ * * * ******************************************************************** function: masking curve data for psychoacoustics ********************************************************************/ #ifndef _V_MASKING_H_ #define _V_MASKING_H_ /* more detailed ATH; the bass if flat to save stressing the floor overly for only a bin or two of savings. */ #define MAX_ATH … static const float ATH[]= …; /* The tone masking curves from Ehmer's and Fielder's papers have been replaced by an empirically collected data set. The previously published values were, far too often, simply on crack. */ #define EHMER_OFFSET … #define EHMER_MAX … /* masking tones from -50 to 0dB, 62.5 through 16kHz at half octaves test tones from -2 octaves to +5 octaves sampled at eighth octaves */ /* (Vorbis 0dB, the loudest possible tone, is assumed to be ~100dB SPL for collection of these curves) */ static const float tonemasks[P_BANDS][6][EHMER_MAX]= …; #endif